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 command and open edit menu.
- Select “Insert New Command” from menu options.
- Now write a new command in inserted line.
- Run the below script in selenium IDE:
Command | Target | Value |
store | helloselenium blog | key1 |
echo | ${key1} | |
open | / | |
verifyTitle | Google | |
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/
In the above script we have inserted a new command to verify the title.
0 Comments
What would you like to add in my list? I look forward to reading your comments below.