Skip to main content
Version: 1.0.1

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​

AttributeData SourceRecommended
Locator: is the element that the keyword will interact with on the user interfaceValue (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 scenarioThe 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 ValueThe default system is String
Output: is the return value of the keywordThe default system is newVariableThe 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