Verify text present is always runs the pass for the Boolean values weather it is true or false

verify text present is always runs the pass for the Boolean values weather it is true or false , see the below image link

Read the doc carefully:

--------

WebUI.verifyTextPresent(_text:_ 'Welcome to our store', _isRegex:_ false)

The 2nd argument isRegex indicates whether the text as the 1st argument is a regular expression or not. The ‘false’ value as the 2nd argument specifies that the 1st argument ‘Welcome to our store’ should be NOT regarded as a regular expression, but just as a plain text. The ‘false’ value as the 2nd argument does NOT revert the meaning of “verify text present in the target page”.

2 Likes

okay…Thank you… so what is the regular expression here and how can we verify it ?

what is the regular expression here

There are many readings about Reglar Expression. For example: