Nexial Automation

Test Automation Platform for everyone!

X

web » saveTextSubstringBefore(var,locator,delim)

Description

  • This command is to sub string the text and get the text before the defined delimiter as input command.
  • The command will sub string the text found from element and return before text from the delimiter.
  • The command will return the after text from defined delimiter and pass the command or else fail otherwise.

Parameters

  • var - this parameter is to store the return value of the command.
  • locator - this parameter is locator of the element
  • delim - this parameter is delimiter, from where the text needs to be separated and return the before value.

Example

Script:

Output:

See Also