Jump to content

[ie.au3] trouble pressing a button


Recommended Posts

Hello. I am trying to make my program press the Login button on http://www.origin.com/us/change-id

The source for this button is:

<a class="btn btn-3" href="#" id="login-link"></a>

I have been searching the forums for hours, trying tons of different solutions posted in other threads.

_IEGetObjById($oID, "login-link") etc, nothing works.

Anyone who can help me out here? Im really frustrated having spent so much time on this damn button.

Thanks in advance.

Edited by Sneakpeek
Link to comment
Share on other sites

This worked for me. IE ver. 8, AutoIt ver. 3.3.4.0.

#include <IE.au3>
$oIE = _IECreate("http://www.origin.com/us/change-id")
_IELinkClickByText ($oIE, "Login")

I had already tried this and it didn't work, but since you mentioned IE8 I downgraded my IE9 installation to IE8 and now it works for some reason.

I quess ie.au3 doesn't support IE9?

Thanks though!

Link to comment
Share on other sites

Hello again. Encountered a new problem.

The login button doesn't actually appear before a loading animation is played.

I use _IECreate("http://www.origin.com/us/change-id", 0, 1, 1) which makes sure the page is loaded before the program continues.

It doesn't wait for the loading animation on the site to finish however.

My current "dirty fix" is to add a Sleep() for a few secs but I'd like more fail-proof way if possible.

Any ideas? Thanks in advance.

Try with beta AutoIt, that works better with IE9 I think.

I am using the beta actually. =/
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...