Skip to main content
Version: 1.0.1

Get Text

Is the action of getting the text value of any element on the tested system 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
Output: is the return result of the keywordThe system defaults to newVariableThe system defaults to String

Use cases​

Use when you need to get the text value of an element on the operation screen

Usually used when you need to get a notification, mess or result of a previously performed action

Example​

On the login screen, in case of entering an incorrect/incorrect username/password

To get the error message content, the user can use the Get Text keyword