Solved

Vbscript Issue - Login to website

Posted on 2009-04-08
3
2,608 Views
Last Modified: 2013-11-25
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
Comment
Question by:BigBadWolf_000
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
ruscomp earned 500 total points
ID: 24100874
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
 
LVL 7

Expert Comment

by:ruscomp
ID: 24100908
0
 
LVL 14

Author Closing Comment

by:BigBadWolf_000
ID: 31568273
Thank You.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about a problem I had getting the GPS LocationListener working.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now