get_attribute
ExtractionReturns a named HTML attribute from an element.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
selector | string | Yes | — | Element selector using type=value format |
attribute | string | Yes | — | HTML attribute name to read |
output_variable | string | No | | Variable name to store result |
iframe | string | No | | CSS selector for iframe context |
timeout | number | No | 5000 | Maximum wait time in milliseconds |
Usage Example
RTILA X PROJECT JSON
{
"command": "get_attribute",
"params": {
"selector": "css=a.product-link",
"attribute": "href",
"output_variable": "product_url",
"iframe": "",
"timeout": 5000
}
}
Related Scenarios
- View /scenarios/basic-navigation/6 · basic navigation
Related Learning Articles
Was this helpful?
Thank you for your feedback!