Selenium IDE plug in example for “verifyEval” and “assertEval” commands

Last updated on October 8th, 2025 at 11:36 am

“verifyEval” Command in selenium IDE plug in

“verifyEval” Command is very useful when you want to compare two values or string especially when you want to compare result of script with stored values in variable.
In bellow given example, I have compared value(5) stored in variable “VarA” with result of javascript{2+3}” script. It will becomes true because 5 = javascript{2+3}. You can verify reverse result by editing these

values.

New Test
CommandTargetValue
openhttps://www.google.co.in/
typeid=gbqfq5
storeValueid=gbqfqVarA
verifyEvaljavascript{2+3}${VarA}
typeid=gbqfqabcd
storeValueid=gbqfqVarB
assertEval‘abc’${VarB}

“assertEval” Command in selenium IDE plug in

“assertEval” Command is working same as “verifyEval” Command but will stop execution if fail. In above example, i have given example of “assertEval” Command for string so that you can understand it better. In above example, “assertEval” will fail because string “abcd” will not match with string “abc”.
author avatar
Aravind QA Automation Engineer & Technical Blogger
Aravind is a QA Automation Engineer and technical blogger specializing in Playwright, Selenium, and AI in software testing. He shares practical tutorials to help QA professionals improve their automation skills.
Stay Updated with New Articles
Get the latest tutorials and insights delivered to your inbox.

Leave a Reply

Your email address will not be published. Required fields are marked *