Get Attributes
Extracts the values of a specified attribute from all HTML elements that match the given selector.
Category: Web Scraping & Data Extraction · Group: Web · Activity name: GetHtmlDataFromAttribute

Example
outputVariable = GetHtmlDataFromAttribute("<selector>", "<attribute>", iframeSelectors=[])
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Selector | string | Yes | CSS selector or XPath to identify the HTML elements. | |
| Attribute | string | Yes | Attribute to extract from the HTML elements. | |
| iFrame Selectors | array | An 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
| Name | Type | Description |
|---|---|---|
| outputVariable | array | Specifies the name of the variable that will store the extracted attributes data. |