HOW TO USE CLOSE COMMAND IN SELENIUM IDE?




Run the below script in selenium IDE:
Command
Target
Value
open
/
focus
//input[@id='gbqfq']

type
//input[@id='gbqfq']
hello selenium
focus
//button[@id='gbqfb']

clickAndWait
//button[@id='gbqfb']

goback


focus
//input[@id='gbqfq']

type
//input[@id='gbqfq']
hello selenium
focus
//button[@id='gbqfb']

clickAndWait
//button[@id='gbqfb']

refresh


close



* Base URL:
http://www.google.co.in/



In the above script we are using close command to close the browser.


Read more about CLOSE COMMAND IN SELENIUM IDE.





Post a Comment

0 Comments