SUBSCRIBE HERE TO GET POST UPDATES VIA EMAIL :

Delivered by FeedBurner

"storeLocation" and "storeTitle" commands in selenium IDE

"storeLocation" Command

"storeLocation" command is useful to store current selected window's URL in selenium IDE software testing tool. See bellow given example for more reference.


New Test
Command Target Value
open https://www.google.co.in
storeLocation i

echo ${i}

In this example, My software web application's URL will be stored into variable "i" and now i can use that variable value anywhere in my script.




"storeTitle" Command

"storeTitle" command is storing title of current opened software web application's title. see bellow given example for more reference. It will store current selected windows title in to variable "j".

New Test
Command Target Value
open https://www.google.co.in
storeTitle j
echo ${j}

2 comments:

  1. Hi! I have 2 windows with the same Title, but different URLs.

    They have no specific IDs, nor anything like that... Can I use the URLs to SELECT between each window? How?

    ReplyDelete
  2. View this example -> http://software-testing-tutorials-automation.blogspot.in/2013/10/selenium-how-to-select-window-if-window.html

    It might helps you.

    ReplyDelete