Skip to main content
Version: 1.0.1

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​

AttributeData sourceRecommended
Parent Element: is the parent element of the element to interact withVariable: is usually the return result of the Find Element keywordThe system default is Elements
Locator: is the element that the keyword will interact with on the user interfaceValue (frequently): The value does not change during testing Variable: Used when xpath changes according to the input data of the test scenarioThe 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à ValueString
Output: The keyword's return value after interacting with the elementThe system default is newVariableString

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.