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



write script to open Gmail.com, and to write script for entering username and password and show whe..

Answer / 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

write script to open Gmail.com, and to write script for entering username and password and show whe..

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

Post New Answer

More VB Script Interview Questions

Explain the adodb.stream class?

0 Answers  


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

0 Answers  


Which operator can be used to do an xor operation in vbscript?

0 Answers  


What is the difference between a dictionary and an array?

0 Answers  


Explain about the support of asp for vb script functionality?

0 Answers  






Explain the support of asp for vb script functionality?

0 Answers  


how to find greatest of n numbers!

3 Answers   Syscon,


write a vb script to display first 5 odd numbers from 1 to 100

4 Answers  


Which in-built function is used to format the number in the vbscript language?

0 Answers  


how to check whether link is disabled in QTP??

0 Answers  


pls tell me which is good book or site for vbscript?

1 Answers   Mind Tree,


What methods are used to create text files and open text files in the vbscript language?

0 Answers  


Categories