assertChecked and verifyChecked - Selenium IDE
assertChecked (target), verifyChecked (target) - Selenium IDE command
The assertChecked and verifyChecked commands will both just verify the checked status of targeted check box or radio button. It will be pass successfully if check box is checked else return error '[error] false' in the execution log.
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.
Closely related to this command is storeChecked.
assertChecked, verifyChecked Example
This macro checks the status of two checkboxes of a website. If "is18" is not checked the execution stops.
Related Demo Macros
The ready-to-import-and-run source code of all demo macros can be found in the Github repository testmacros folder.
Anything wrong or missing on this page? Suggestions?
...then please contact us.