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

What are the different types of operators and their order of precedence?

0 Answers  


I'm new to QTP, i facing a a problem in the script says"Object not found", "Browser("").page("").frame(Name:=fminfo).webtable(). the issue is, QTp is not able to identify the web table in run time.becuase in that fram"fminfo" there are "n"table and the table do not have the names,Html id. 1) i need to count the number webtables available on that page. 2)need to identify the webtable cell values. 3)How Loop the once i get the count and retrive the cell data of each webtable? Can anyone help on this, plz.. Thanks, Suresh

3 Answers  


give me an ex. of unoverloaded method?

2 Answers   Misys,


What is the extension of the vbscript file?

0 Answers  


how to write vb script code for login gmail page by using notepad and how to run script in notepad

1 Answers  






How will you trim the spaces on the left of a string using vbscript?

1 Answers  


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

0 Answers  


Explain the string concatenation function in vbscript?

0 Answers  


Write VB script to convert from feet to inches(hint 1feet=12 inches)

2 Answers  


How you can call vbscript functions?

0 Answers  


What is the use of "Option Explicit"?

2 Answers  


How to Import data from a file (file is on the desktop) to the data table

0 Answers   IBM,


Categories