Skip to main content

Get Element Children

Returns all the children of an HTML element.

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

The GetHtmlChildren activity in the designer

Example

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

Inputs

NameTypeRequiredDefaultDescription
SelectorstringYesCSS selector or XPath to identify the web element.
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 enumeration of all child elements of the selected HTML element.