Sneakpeek Posted December 1, 2011 Share Posted December 1, 2011 (edited) Hello. I am trying to make my program press the Login button on http://www.origin.com/us/change-idThe 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 December 1, 2011 by Sneakpeek Link to comment Share on other sites More sharing options...
somdcomputerguy Posted December 1, 2011 Share Posted December 1, 2011 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") ThaReverand 1 - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Sneakpeek Posted December 1, 2011 Author Share Posted December 1, 2011 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 More sharing options...
somdcomputerguy Posted December 1, 2011 Share Posted December 1, 2011 (edited) Try with beta AutoIt, that works better with IE9 I think. Edited December 1, 2011 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Sneakpeek Posted December 1, 2011 Author Share Posted December 1, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now