Child Element Get Attribute
The act 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 |
|---|---|---|
| Parent Element: is the parent element of the element to interact with | Variable: is usually the return result of the Find Element keyword | The system default is Elements |
| Locator: is the element that the keyword will interact with on the user interface | Value (frequently): The value does not change during testing Variable: Used when xpath changes according to the input data of the test scenario | The system recommends the default locator as Repository Element |
| Attribute: is the attribute of the element that the user needs to get, the common attributes of an element: id, name, value, text… | Hệ thống mặc định là Value | String |
| Output: The keyword's return value after interacting with the element | The system default is newVariable | String |
Use cases
Used when the user needs to get the value of a certain attribute of an element on the interface but only applies to child tags of the parent Element
Usually the problems require getting the combobox value after inputting data using the Select by Value keyword and have the selected attribute for the purpose of comparing the output value and the entered value.