store - Selenium IDE
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 Ui.Vision RPA 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://ui.vision/ | |
store | 12345 | myvar |
echo | ${myvar} | |
type | id=phone | ${myvar} |
Works in
Ui.Vision RPA for Chrome Selenium IDE, Ui.Vision RPA for Firefox 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 Open-Source RPA software Github repository.
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.