-
-
View the HTML source to determine the form field names.
Also you probably want to delete the Quit and Nothing lines, otherwise IE will disappear after the login.
-
hi
its a java scripted page thats where am struck am not able to get the user name and password values
-
Both values are viewable if you look for them. The user name input box is in plain HTML in the web page source. The password box is generated by Javascript, but the script just writes HTML to the web page - look at the ns_showpwd() function in https://extcitrix.wellpoint.com/vpn/login.js.
[vba]Public Sub IE_Login()
Dim IE As Object
Dim lform As Object
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Navigate2 "https://extcitrix.wellpoint.com"
Do Until .ReadyState = 4
DoEvents
Loop
.Visible = True
Set lform = .Document.forms(0)
With lform
.Item("login").Value = "Your Username"
.Item("passwd").Value = "Your Password"
.submit
End With
Do Until .ReadyState = 4
DoEvents
Loop
End With
End Sub [/vba]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules