Quality Testing

Quality is delighting customers

can anyone tell me how to automate log in script in selenium. i have prepare the script for 4 iteration, but if user give first time wrong pwd/user name, then the script will hang, what should I do to ignore this prob.....!!



while

open /index.php?main=index

assertTitle GPS Vehicle Tracking Software, GPRS Vehicle Tracking Systems : Login

store 1 logn

store 4 logo

while storedVars['logn']<storedVars['logo']

getEval storedVars['username']=prompt("Enter username")

getEval storedVars['password']=prompt("Enter PWD")

getEval storedVars['logn']=${logn}+1

type username ${username}

type password ${password}

clickAndWait submit

assertTitle GPS Tracking

click //img[@onclick='hide_selectveh()']

clickAndWait //ul[@id='menu']/li[9]/a/span

assertTitle GPS Vehicle Tracking Software, GPRS Vehicle Tracking Systems : Login

endWhile

Views: 119

Reply to This

Replies to This Discussion

script

Attachments:

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service