Nexial Automation

Test Automation Platform for everyone!

X

web » saveText(var,locator)

Description

This command retrieves text from target element (locator) and save it to a data variable denoted as var. Note that if no text can be found, the specified data variable will be removed to avoid confusion.

Parameters

  • var - this parameter is to store the value into variable.
  • locator - this parameter is locator(xpath) of the element.

Example

Script:

Output:

See Also