WebUI.verifyTextPresent(“Login successfully”, false)
Why code is not working without “false”…
WebUI.verifyTextPresent(“Login successfully”, false)
Why code is not working without “false”…
The boolean “false” is not about your test or such but whether you want to use Regular Expression (RegEx). RegEx is used if you want to compare something similar but not exact. In the case above, you want the exact comparison.
I use RegEx when I am comparing our webpage timestamp–if the timestamp is on the page and if it has the correct date and time but I am not interested in the microseconds.
I suggest not to set the boolean parameter to true unless you know something about RegEx. You will pull your hair out trying to figure out why some comparisons are not working especially if you use certain characters, such as dollar signs, parentheses or brackets.
As well, the method, verifyTextPresent(), is expecting two parameters, so the boolean parameter is mandatory.