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

"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