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
| 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 |
| Output: is the return result of the keyword | The system defaults to newVariable | The 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