Sunday, 20 January 2013

"storeLocation" and "storeTitle" commands in selenium IDE



"storeLocation" Command


"storeLocation" command is useful to store current selected window's URL. See bellow given example for more reference.



New Test
CommandTargetValue
openhttp://software-testing-tutorials-automation.blogspot.in
storeLocationi
echo${i}

In this example, My current window'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 selected window. see bellow given example for more reference. It will store current selected windows title in to variable "j".

New Test
CommandTargetValue
openhttp://software-testing-tutorials-automation.blogspot.in
storeTitlej
echo${j}

No comments:

Post a Comment