Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations.
store is one of the commands in Selenium IDE.
The purpose of the store command is to store any text into a variable in Selenium IDE.
In this article, I am going to practically demonstrate store commands in Selenium IDE to store the text into a variable and then print the value stored in the variable.
Let’s get started.
New Selenium IDE – store command
Follow the below steps for practicing store command in Selenium IDE along with me:
1) Let’s write the below code in Selenium IDE to store the text into a variable using ‘store’ command and then print the value stored in the variable using the ‘echo‘ command.
[su_table alternate=”no”]
Command | Target | Value |
---|---|---|
open | http://omayo.blogspot.com/ | |
store | QAFox.com | x |
echo | ${x} |
[/su_table]
After incorporating the commands in the above table, Our Selenium IDE should look like below:
2) Run the test and observe that the test will be passed and the value stored in the variable ‘x’ will be printed in the ‘Log’ tag as shown below:
Here concludes the practical demonstration of store command in Selenium IDE for storing the value into a variable.
In the next article, I will practically demonstrate another Selenium IDE command.
Next Steps:
- > Check complete Selenium Tutorial Contents here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning ?
On a mission to contribute to the Software Testing Community in all possible ways.
Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations.