BROWSER Get element attribute function

The BROWSER Get element attribute function in RPA.

Help CentreBuilding Processes

This article describes the RPA Browser functionality to get element attribute.

For a full list of available functions, please read BROWSER functions.


Description

The BROWSER Get element attribute function allows you to get element attribute.


Setting it up

To use the BROWSER Get element attribute function, follow these instructions:

{{popups:rpas/add:action=browser-get-attr}}

Once on a process map:

  1. Navigate to the process where you would like to add the BROWSER Get element attribute function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the BROWSER Get element attribute option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Element selectorYesTextSelector to identify the element.
Selector typeYesSelectXPathMethod to locate the element.
AttributeYesTextName of the attribute to retrieve (e.g. href, class, value).
VariableYesTextVariable to store the attribute value.
Scroll into viewNoBooleanOffScroll to the element first.
Visible onlyNoBooleanOffOnly consider visible elements.

Output variables

VariableTypeDescription
VariableTextThe value of the specified attribute.

Errors

ErrorDescription
Element not foundThe element could not be found.
Attribute not foundThe specified attribute does not exist on the element.

Tips

  • Common attributes: href, src, class, id, value, placeholder, title.

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.