Skip to main content

Get Elements

Returns all the HTML elements that match the provided selector.

Category: Web Scraping & Data Extraction · Group: Web · Activity name: GetHtmlElements

The GetHtmlElements activity in the designer

Example

outputVariable = GetHtmlElements("<selector>", iframeSelector="<iframeSelector>", iframeSelectors=[])

Inputs

NameTypeRequiredDefaultDescription
SelectorstringYesCSS selector or XPath to identify the HTML elements.
iFrame SelectorstringCSS selector or XPath to locate the iframe containing the target element. Leave empty if the element is not inside an iframe.
iFrame SelectorsarrayAn ordered array of CSS selectors or XPaths to locate nested iframes containing the target element. Provide selectors in order from outermost to innermost iframe (e.g., ['#parent-frame', '.child-frame'] for an element inside a child iframe that's within a parent iframe). Leave empty if the element is not inside any iframes.

Outputs

NameTypeDescription
outputVariablearraySpecifies the name of the variable that will store the elements.