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. In other words, use storeValue for web scraping information from input boxes, select boxes, checkboxes, radiobuttons or textareas. For extracting text from "normal" HTML, use storeText.

PS: Do not confuse storeValue with storeEval, which sounds similar but is a very different command.

storeValue Example

The macro extracts the hardware nformation from this textarea form field.

Collapsible Description

Command Target Pattern/Text
open https://a9t9.com/kantu/docs/selenium-ide/storevalue
storeValue id=Readonlytask_Description mytext
echo Extracted Text = ${mytext}

Works in

Kantu for Chrome 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.