Header Ads

HOW TO INSERT A COMMENT IN SELENIUM IDE SCRIPT?

  • Open a saved script in selenium IDE.




Command
Target
Value
store
helloselenium blog
key1
echo
${key1}

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

type
//input[@id='gbqfq']
${key1}
focus
//button[@id='gbqfb']

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

storeEval
alert('Test executed successfully!!')

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







  • Select line where need to add a new comment and open edit menu.
  • Select “Insert New Comment” from menu options.

 


  • Now write a new comment in inserted line.
  • Run the below script in selenium IDE: 
Command
Target
Value
storing a search key as variable


store
helloselenium blog
key1
echo
${key1}

test script started from here


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

type
//input[@id='gbqfq']
${key1}
focus
//button[@id='gbqfb']

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

test script ended from here


storeEval
alert('Test executed successfully!!')


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




In the above script we have added some comment to describe the script.



No comments


What would you like to add in my list? I look forward to reading your comments below.



Powered by Blogger.