how to write vb script code for login gmail page by using
notepad and how to run script in notepad
Answer / bittu
Write the below code in atext file and save it with .vbs
extension and run it. U will login into gmail automatically.
Provide the credentials in the line 10 & 11.
---------------------------------
WScript.Quit Main
Function Main
Set IE =
WScript.CreateObject("InternetExplorer.Application", "IE_")
IE.Visible = True
IE.Navigate "http://www.gmail.com"
Wait IE
With IE.Document
.getElementByID("Email").value = "abcd"
.getElementByID("Passwd").value = "xyzp"
.getElementByID("gaia_loginform").submit
End With
End Function
Sub Wait(IE)
Do
WScript.Sleep 500
Loop While IE.ReadyState < 4 And IE.Busy
Do
WScript.Sleep 500
Loop While IE.ReadyState < 4 And IE.Busy
End Sub
Sub IE_OnQuit
On Error Resume Next
WScript.StdErr.WriteLine "IE closed before script finished."
WScript.Quit
End Sub
| Is This Answer Correct ? | 0 Yes | 10 No |
Explain about arrays in vb script?
after medical test,when will be the police verification
Hi I don't have any idea on VBscript. can any one point me to a good web site to learn VBscript. Regards lina
What are the valid scopes of a variable in vbscript?
How to pass argument by reference to a function in vbscript?
give me an ex. of unoverloaded method?
How will you check that a variable is an array in vbscript?
Write a program to create a Dynamic array of size 5 elements and display all the elements.
How can you fetch the value of a cookie?
If else for do while select in vb script?
How to select a value from a list box by using Selenium web-driver?
i need to login to my yahoo accoutnt using VB Script, automating the operation of webobjects, even launching of IE. How?