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 |
what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next
write a program to display configuration of a local system with the help of vb script.
Which keyword is used to declare a variable in the vbscript language?
write a Vb script to find a whther a selected drive exits.
i want to when we will write the scripts either after getting the build or after getting the SRS?
Mention how to create a cookie using vbscript?
Write VB script to convert from feet to inches(hint 1feet=12 inches)
Explain about scrrun.dll in vbscript?
How will you get the largest subscript of an array in vbscript?
What is string concatenation function in VBScript?
sunday is sunday monday tuesday wendesday sunday thursday friday saturday sunday sunday how to count no of sunday in the text file from vb? Answer me asap
Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its size to 7 elements and then find out which of the elements are prime (use functions)