Skip to main content

Get Element Attributes

Description

Get Element Attributes retrieves the value of one or more HTML attributes or CSS properties from a web element at runtime. Use this step when your Web GUI [Classic] workflow needs to inspect an element's visual or structural properties — such as background color, font name, or any other attribute — to validate state or make decisions during automation. You can capture multiple properties in a single step by adding rows to the attributes table, with each result stored in its own output field. The step also provides an Active Element checkbox to capture attributes from the currently focused element without specifying criteria.

Configurations

Field NameDescription
Step NameName of the step. The name must be unique in a single workflow.
Active elementSelect the checkbox to capture the currently active element.
Web browser nameDisplays the name of the web browser.
Criteria‘Criteria’ is the criterion to locate element on Windows Desktop. It is captured by Windows Spy in the Generate Step dialog.
Upon Step Generation it is populated in the step configuration. You may change criteria by choosing from the list in ‘Step Generation’ window or step configuration. Note: It is similar as in Web GUI [Classic]plugin steps.
Criteria valueSpecify relevant criteria value for the criteria provided in the Criteria field.
Multiple elements with same criteriaSelect the checkbox if you want to select multiple elements having the same criteria.
Element index(Starts with 0)For Multiple elements with same criteria, specify index of the element you want to locate.
Provide index 0 if you want first element from the located elements, increment index by 1 for the next elements.
Attributes/property table
TypeSelect the type of attribute. Available options are: CSS Property and Element attribute.The field is mandatory.
NameSpecify the name of the CSS Property or Element attribute based on the Type.The field is mandatory.
Field NameSpecify the output field name of in which the value of specified property or attribute is stored.The field is mandatory.
Note: User can provide multiple properties or attributes.