Chance1 Posted July 10, 2017 Share Posted July 10, 2017 Hey guys, I am looking for a way to click on a link in an IE window. The only commands I could find were _IELinkClickByText and _IELinkClickByIndex, and when using Autoit Window Info there is nothing that comes up for those two Controls. I could use controlclick on the position, but I was curious as to if there was a better way to do so or am I going to be stuck using control click? Thanks in advance. Link to comment Share on other sites More sharing options...
Danp2 Posted July 10, 2017 Share Posted July 10, 2017 The two functions you mentioned are the correct way to click links in IE. FYI -- The Autoit Window Info won't help when dealing with a web browser. Look at the help file examples and then come back if you still require assistance. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Chance1 Posted July 10, 2017 Author Share Posted July 10, 2017 (edited) Oh yes I see that now, than you. It seems to be a little buggy however, does anyone else feel that way? I think I might stick with the control click for now. edit: it could also just be the page that I am working with too. Edited July 10, 2017 by Chance1 Link to comment Share on other sites More sharing options...
Danp2 Posted July 10, 2017 Share Posted July 10, 2017 21 minutes ago, Chance1 said: Oh yes I see that now, than you. It seems to be a little buggy however, does anyone else feel that way? I think I might stick with the control click for now. Post a script that reproduces the issues you are encountering. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Chance1 Posted July 10, 2017 Author Share Posted July 10, 2017 (edited) Just the scripts in the examples page are buggy. ; Open browser with basic example, click on the link with text "user forum" #include <IE.au3> Local $oIE = _IE_Example("basic") _IELinkClickByText($oIE, "user forum") It creates the IE window and clicks the link that it is trying to click, but the page is never able to load. It's pretty much the same issue I am having in my script. However, it could be something with my machine and not autoit at all. Was just curious as to if anyone else had encountered this. Also, The page I am trying to interact with is a the warning page that suggests you to not continue to the webpage. The antivirus doesn't like it for some times. So if the page pops up, I want to click the link that says "Continue to this website (not recommended)." And yes, I have tried the following _IELinkClickByText($oIE, "Continue to this website (not recommended). ") _IELinkClickByIndex($oIE, 2) And neither work. Edited July 10, 2017 by Chance1 Link to comment Share on other sites More sharing options...
Danp2 Posted July 10, 2017 Share Posted July 10, 2017 1 hour ago, Chance1 said: Just the scripts in the examples page are buggy. <snip> However, it could be something with my machine and not autoit at all. Runs just fine on my end. Quote Also, The page I am trying to interact with is a the warning page that suggests you to not continue to the webpage That sounds more like a security certification issue. Can you provide a URL? Latest Webdriver UDF Release Webdriver Wiki FAQs 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