storeChecked (target, variable) - Selenium IDE command

The storeChecked command will identify the status of check box or radio button and store the value 'true' or 'false' in a variable. It will store 'true' in variable if element is checked and will store 'false' if element is not checked or unchecked. Later on you can use that value, for example, with the if or gotoIf commands.

Closely related to this command are AssertChecked and VerifyChecked.

For more information about data extraction in general see Web Scraping with Selenium IDE.

storeChecked Example

This macro extracts (scrapes) the status of a check box of a website. It returns either "true" or "false" (box is checked, or not).

Command Target Pattern/Text
open https://a9t9.com/
storeChecked id=over18 is18
echo User is over 18 is ${is18}

Works in

Kantu for Chrome Selenium IDE, Kantu for Firefox Selenium IDE, Firefox IDE Classic

Related Demo Macros

DemoExtract

The ready-to-import-and-run source code of all demo macros can be found in the Github repository testmacros folder.

See also

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

Anything wrong or missing on this page? Suggestions?

...then please contact us.

Kantu Selenium IDE for Chrome and Firefox - Web Test Automation
Subscribe to the a9t9 automation software newsletter . We'll send you updates on new releases that we're working on.