HOW TO USE LABEL COMMAND IN SELENIUM IDE?




Run the below script in selenium IDE:

Command
Target
Value
storing a search key as variable


store
1
x
test script started from here


label
Test1

while
(${x}<10)

echo
${x}

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

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

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

storeEval
storedVars['x'] = ${x}+1

endWhile


test script ended from here


storeEval
alert('Test executed successfully!!')


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






In the above script we have added a label “Test1” in between the script.






Post a Comment

0 Comments