06-19-2009, 04:24 PM
(This post was last modified: 06-19-2009, 04:26 PM by sarveshqtp.)
Code:
InvokeApplication "C:\Program Files\Internet Explorer\IEXPLORE.EXE gmail.com"
For i=1 to 3
Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("name:=Email").Set "sarvesh"
Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("name:=Passwd").Set "111111"
Browser("Gmail: Email from Google").Page("Gmail: Email from Google").webButton("name:=Sign in").Click
x=Browser("Gmail: Email from Google").Page("Gmail: Email from Google").webButton("name:=Sign in").Exist
If x=0 Then
Reporter.ReportEvent 0,r1,Success
Exit for
End if
If i=3 Then
Reporter.ReportEvent 1,r1,Success
End If
Next
From:sarvesh.qtp@gmail.com
Make sure that there is no captcha image in your application