Members

Difference between verifyText and verifyTextPresent in Selenium
The "verifyTextPresent" command is not for storing value of any target element, but could be used to verify that specified target text is available anywhere on the page or not. The UI.Vision RPA IDE does not support verifyTextPresent (and assertTextPresent) because we want to help reduce the zoo of previous IDE commands. In the modern UI.Vision RPA IDE verifyTextPresent can be easily recreated with storeText plus if.

On the storeTextPresent page you find an example that "simulates" verifyTextPresent by using storeText and then checks if the extracted text is correct. If not, it throws an error. The simulation of verifyTextPresent is actually better than the original: The old verifyTextPresent checks for the presence of the text in the entire page. This can often lead to false positives, and is not generally advised.

Views: 1

Comment

You need to be a member of On Feet Nation to add comments!

Join On Feet Nation

© 2024   Created by PH the vintage.   Powered by

Badges  |  Report an Issue  |  Terms of Service