storeValue (target, pattern) - Selenium IDE command

The storeValue is used to move the value of an element into a variable for future use. Note that for website input boxes the text is the value, so storeValue is used to retrieve text from inside input boxes.

storeValue Example

This macro extracts a phone number from the input box of a website.

Command Target Pattern/Text
storeValue id=phone myphone
echo Phone = ${phone}

Works in

Kantu for Chrome Selenium IDE, Firefox IDE Classic

Related Demo Macros


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.