write script to open Gmail.com, and to write script for
entering username and password and show whether the result
as pass or fail
Answers were Sorted based on User's Feedback
'---------------------------------------------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 |
Answer / b.v.raghavendra babu
systemutil.Run "iexplore.exe" , "http://www.gmail.com"
browser("name:=Gmail").page("title:=Gmail").Sync
browser("name:=Gmail").page("title:=Gmail").webedit("name:=Email").Set "raghavendrababu"
browser("name:=Gmail").page("title:=Gmail").webedit("name:=Passwd").Setsecure "52b8097da3e1d1b557575738826"
browser("name:=Gmail").page("title:=Gmail").webbutton("name:=Sign in").Click
browser("name:=Gmail - Inbox").page("title:=Gmail - Inbox").Sync
browser("name:=Gmail - Inbox").page("title:=Gmail - Inbox").Link("name:=Compose Mail","x:=18","y:=155").Click
Is This Answer Correct ? | 0 Yes | 1 No |
Explain the adodb.stream class?
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
Which operator can be used to do an xor operation in vbscript?
What is the difference between a dictionary and an array?
Explain about the support of asp for vb script functionality?
Explain the support of asp for vb script functionality?
how to find greatest of n numbers!
write a vb script to display first 5 odd numbers from 1 to 100
Which in-built function is used to format the number in the vbscript language?
how to check whether link is disabled in QTP??
pls tell me which is good book or site for vbscript?
What methods are used to create text files and open text files in the vbscript language?