assertValue (target, pattern) , verifyValue (locator, text)- Selenium IDE command

assertValue and verifyValue both get the value of an element (as defined by the locator) and check if it meets the requirement of the pattern. This works for any element that has a value attribute.

Assert and verify commands are both useful for verifying condition match or not. The difference is that verify command will verify the condition and if it does not match, it will only show an error message in log area and the macro continues to run. With the assert command, if the condition does not match then it will stop remaining macro execution in the selenium IDE software testing tools.

assertValue and verifyValue Example

In this short example, we check for the presence of the elements and, if found, check if their value matches "Tesla" and "red". If the value is not "Tesla", the macro stops since we used assert.

Command Target Pattern/Text
open https://ui.vision/
assertValue id=car Tesla
verifyText id=color red

Works in

Ui.Vision RPA for Chrome Selenium IDE, Ui.Vision RPA for Firefox Selenium IDE, Firefox IDE Classic

Related Demo Macros

DemoStoreEval uses many Asserts

The ready-to-import-and-run source code of all demo macros can be found in the Open-Source RPA software Github repository.

See also

storeValue,assertTitle, storeText, Web Automation Extension User Manual, Selenium IDE commands, Classic Firefox Selenium IDE.

Anything wrong or missing on this page? Suggestions?

...then please contact us.

<em>Ui.Vision RPA</em> Selenium IDE for Chrome and Firefox - Web Test Automation

Fresh from the Ui.Vision Forum: The Latest 3 RPA Software Discussions

← Meet the Ui.Vision team and users on our RPA software forum.