Can some one help me in giving the logic code when user already logged into the web based application the script which he is going to run for other testing includes to login application.
May be if already login I want that to continue with testing
Printable View
Can some one help me in giving the logic code when user already logged into the web based application the script which he is going to run for other testing includes to login application.
May be if already login I want that to continue with testing
hai friend,
for ex: the login page will be the home to enter into the site , provide the user name and password and click on login button. The login button will take you to some pages and identify an objects over there and check condition.
Browser("B").Page("P").WebEdit("e").set "test"
Browser("B").Page("P").WebEdit("e").setsecure "akfrfgniyb3890jzvf"
Browser("B").Page("P").Webbutton("c").click
here i am assuming if the login is valid the page navigation will be done to next page and there will be an image button c. So if the Image c exist then i can continue else close the browser
If Browser(B0.Page(P).Image("C").Exist Then
// steps to be followed
else
Browser.close
End if
Thanks
Deepa