Foxpro InternetExplorer.Application object

I use the InternetExplorer.Application object to automatically sign into Yahoo

The following code has been working for a few year on Internet Explorer version 8,
but when I upgraded to version 9 it no longer works. The user name and password fill the text boxes, but the submit button doesn't 'click' to submit the form. I also tried oIE.Document.login_form.click which until now also works, but for Internet Explorer 9 and above, it doesn't:

oIE.Document.login_form.username.value="myUserName"   

 oIE.Document.login_form.passwd.value="myPassword"

oIE.Document.login_form.submit

Open in new window

esak2000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pcelbaCommented:
You have to look at the login_form HTML code and check the button name under IE 9. Then you should call the Click method of the button:

oIE.Document.login_form.submit.Click()

BTW, to store passwords in the app code isn't good security practice. Users should fill passwords manually and then press the appropriate button.
0
esak2000Author Commented:
As expressed in my original post, I also tried the click method, but that didn't work either.
Thank you for the best practice comment.
0
pcelbaCommented:
The original post says  "oIE.Document.login_form.click"  which is different from  oIE.Document.login_form.submit.Click()

Did you look at the login page source already? The button does not have "submit" name. I'll test it later.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pcelbaCommented:
Try this:

oIE.Document.login_form.item(".save").click("")

and you may play with Click parameters probably.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FoxPro

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.