Add Element Attribute
Object that allows you to make a change to an attribute of a web element.
Last updated
Object that allows you to make a change to an attribute of a web element.
Last updated
This object depends on the "Find Element" object to work
Field | Descriptive |
Title | Object Title |
Select Main Object | Option to select the "Search for Elements" object |
Attribute Name | Name of the attribute that will be modified |
Attribute Value | Value to which it will be changed |
Index | Index of the attribute if it is a list of elements |
To use the object you need to follow the steps below:
1 - Select the "Open Browser" object from the "Internet" menu and drag it to your working area.
First you must define a unique name for the object in the "Object Identifier Name" field, select a browser and enter the website to be accessed in the "Page Address" field:
Conforme imagem acima, nessa simulação, utilizamos o site do Google: - As shownabove, in this tutorial we used the Google's homepage.
2. Next we also need to include the "Search for Elements" object, which should contain the identifier of the object that opened the browser and the Xpath of the element that you want to modify.
3. Finally we add the "Include Element Attribute" object to the working area:
We select the identifier for the "Search for Elements", then we pass the name of the attribute that we will be modifying and its respective value. The index parameter will only need to be changed if the "Search for Elements" returns a list.
4. The working area should look like this: