Get Attribute
Is the action of getting the value of an attribute of an element on the user interface
Platform
Web, Android, iOS, Windows, JavaSwing
Attribute
| Attribute | Data Source | Recommended |
|---|---|---|
| Locator: is the element that the keyword will interact with on the user interface | Value (commonly used): the value does not change during the testing process Variable: used when the xpath changes according to the input data of the test scenario | The system recommends the default locator is Repository Element |
| Element attribute: is the attribute of the element that the user needs to get, the common attributes of an element: id, name, value, text… | The default system is Value | The default system is String |
| Output: is the return value of the keyword | The default system is newVariable | The default system is String |
Use case
Used when the user needs to get the value of an attribute of an element on the interface, usually problems that require getting the ComboBox value after inputting data using the keyword Select by Value and having the selected attribute with the purpose of comparing the output value and the entered value