Showing posts with label storeText command. Show all posts
Showing posts with label storeText command. Show all posts

"How to Store and Reuse Information in Selenium IDE ?" This question is asked by one of my blog reader through Ask A Question page so let me share it with all of you. It might helps you too for software testing using selenium IDE. Question is as bellow.

Question : 
Using Selenium IDE, how do you:

"storeText" command

"storeText" command in selenium IDE software testing tool is useful to store text value of page element of software web application in to variable for future use.

See bellow given example. In this example, When "storeText" command will be executed in selenium IDE software testing tool, value of page element "css=#gb_2 > span.gbts" will be stored into variable "k". If specified target element ("css=b" in this case) will be not found on software web application's page then it will show error message like "[error] Element css=b not found" in log area of selenium IDE window.

Note : Need Examples of all selenium IDE softwarecommand tutorials? Click Here to view them.

New Test
Command Target Value
open https://www.google.co.in/
storeText css=#gb_2 > span.gbts k
echo ${k}

"storeTextPresent" command

"storeTextPresent" command is not for storing value of any target element, but it is useful to verify that