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://ui.vision/
storeChecked id=over18 is18
echo User is over 18 is ${is18}

Works in

Ui.Vision RPA for Chrome Selenium IDE, Ui.Vision RPA 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 Open-Source RPA software Github repository.

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.

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

Fresh from the Ui.Vision Forum: The Latest 3 Topics. Join the discussions:

← Meet the Ui.Vision team and users in our forums.