write script to open Gmail.com, and to write script for
entering username and password and show whether the result
as pass or fail
Answer Posted / srinivasareddy
'---------------------------------------------opening gmail
login page------------------------------------------------
systemutil.Run "iexplore.exe","www.gmail.com",,,3
wait(20)
If Browser("name:=Gmail: Email from
Google").Page("title:=Gmail: Email from
Google").WebEdit("name:=Email","html id:=Email").exist Then
Reporter.ReportEvent micPass,"Login page","Gmail Login
Page Succesfully Opened"
Browser("name:=Gmail: Email from
Google").Page("title:=Gmail: Email from
Google").WebEdit("name:=Email","html id:=Email").set
"balagisrinu.reddy"
Browser("name:=Gmail: Email from
Google").Page("title:=Gmail: Email from
Google").WebEdit("name:=Passwd","html id:=Passwd").set
"00000000"
Browser("name:=Gmail: Email from
Google").Page("title:=Gmail: Email from
Google").WebButton("name:=Sign in","html id:=signIn").Submit
else
Reporter.ReportEvent micFail,"Login page","Gmail Login Page
Not Opened Succesfully "
ExitTestIteration
End If
'--------------------------------------------------------------------------------------------------------------------------------------------
'------------------------------------------------validating
the my mail id opened--------------------------------------
'Browser("name:=Gmail - Inbox").Page("title:=Gmail -
Inbox").Link("text:=Compose Mail","name:=Compose
Mail").highlight
wait(20)
If Browser("name:=Gmail - Inbox").Page("title:=Gmail -
Inbox").Link("text:=Compose Mail","name:=Compose
Mail").exist Then
Reporter.ReportEvent micPass,"Sign in","login is successfully"
else
Reporter.ReportEvent micPass,"Sign in","login is Not
successfull"
ExitTestIteration
End If
'-----------------------------------------------------------------------------------------------------------------------------------------------------
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Which keyword is used to declare a variable in the vbscript language?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
Explain about adodb.stream class?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
Explain about tristate constants?
What is the use of the formatdatetime function in the vbscript language?
Which operator is used to perform the comparison among 2 operands in the vbscript language?
What is the output of a + b in vbscript if a = 5 and b = 10?
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
Can anyone send me a vb script function for verifying the functionality of active links on a web page
Which operator is used to concatenate the 2 values in the vbscript language?
what is the standards used for writing the script in QTP
did any one attended interview in applabs if you had gone through plz tell me the procedure
How will you convert a given number to long in vbscript?