[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2620
  • Last Modified:

Vbscript Issue - Login to website

Objective is to launch url (site EE) in IE and login...using the script below...it works fine, except the last line does not perform the click to login..
objIE.Document.all.msuLoginSubmit.Click

What am I doing wrong...Also what should be the last line, same script (to click Continue) for this site....
https://www.netflix.com/Login
strEmail = "username"
strPass = "password"
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
objIE.Navigate "http://www.experts-exchange.com/"
While objIE.Busy = True
	WScript.Sleep 100
Wend
While objIE.ReadyState <> 4
	WScript.Sleep 100
Wend
objIE.Document.all.msuLoginName.value = strEmail
objIE.Document.all.msuPassword.value = strPass
objIE.Document.all.msuLoginSubmit.Click

Open in new window

0
BigBadWolf_000
Asked:
BigBadWolf_000
  • 2
1 Solution
 
ruscompCommented:
Why not try submitting the form, instead of clicking the button? They should trigger the same action. The click method for buttons is very poorly supported in browsers.
0
 
BigBadWolf_000Author Commented:
Thank You.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now