store (value, variable) - Selenium IDE command

The Selenium functions store, storeValue, and storeText store some data for later access. Selenium uses a map called storedVars to store the data. You can use previously stored variables. ${varaiable_name} gives us access to the storedVars map. To display the value of a stored variable use "echo".

The Kantu IDE includes useful built-in variables that control replay and provide status information. They can be accessed from within your macro. Some are read only (like !URL), others like !TIMEOUT_WAIT can be set by the macro. Internal vars always start with "!" and so your own variables must not start with "!".

store Example

When you store something inside the var (using the var name,) then no {...} is used. But when you need the value of the var, then you access it by writing ${...}. To check the value of a var, use the echo command.

Command Target Pattern/Text
open https://a9t9.com/
store 12345 myvar
echo ${myvar}
type id=phone ${myvar}

Works in

Kantu for Chrome Selenium IDE, Firefox IDE Classic

Related Demo Macros

Demo-Autofill, Demo-Frame

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

See also

storeAttribute, storedVars, storeEval, storeText, storeTitle, storeValue, 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.