Skip to main content

get_attribute

Extraction

Returns 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

Related Learning Articles

Was this helpful?