verifyForText function in selenium
verifyTextPresent function in selenium is used to verify whether the Text is present in the page or not.
If not, it returns false.
In my experience, I tried with the click function and followed by this function with wrong value, so that it should return false. But I couldn't see false is returned.
After scratching my head i tried with open and followed by the verifyTextPresent function(as usual with wrong value), it returned false for the invalid data.
No comments:
Post a Comment