Get Element Attribute

Read an element's attribute into a variable.

Web BrowserGetAttribute

What it does

Read an element's attribute into a variable.

Parameters

ParameterTypeRequiredDefaultDescription
Browser instancevariable
RequiredbrowserName that identifies this browser session.
Selector typedropdown
CSS · XPath · ID · Name · Text
RequiredCSS
Selectorstring
RequiredElement selector (matches the selector type).
Example: #submit
Supports variables
Attributestring
Required
Example: href
Supports variables
Store result invariable
Required
Example: value

More Web Browser commands

Ready to automate your busywork?

Start your free 10-day trial today. No credit card, no commitment.