HomeSelenium

New Selenium IDE – Using ‘store title’ command

New Selenium IDE – Using ‘store title’ command

Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations.

store title is one of the commands in Selenium IDE.

The purpose of the store title command is to retrieve and store the title of the page into a variable in Selenium IDE.

In this article, I am going to practically demonstrate store title commands in Selenium IDE to retrieve and store the title of the page into a variable and then print the value stored in the variable as shown below:

store title Selenium IDE - demo

Let’s get started.

New Selenium IDE – store title command

Follow the below steps for practicing store title command in Selenium IDE along with me:

1) Let’s write the below code in Selenium IDE to store the title text into a variable using ‘store title’ command and then print the title text stored in the variable using the ‘echo’ command.

Command Target Value
open http://omayo.blogspot.com/
store title x
echo ${x}

After incorporating the commands in the above table, Our Selenium IDE should look like below:

store title Selenium IDE - typing

2) Run the test and observe that the test will be passed and the title value stored in the variable ‘x’ will be printed in the ‘Log’ tag as shown below:

store title Selenium IDE - executed

Here concludes the practical demonstration of store title command in Selenium IDE for retrieving and storing the title text 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 🙂

About Me > Arun Motoori

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.

If you like this article, share it on LinkedIn using the below button:

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *