RABANY1 Posted April 18, 2018 Share Posted April 18, 2018 <a class="boutonAction" href="javascript:fcDoAction('AFFICHER__CD')">Show it</a> I tried $btatt = .document.getElementsByTagName("a") For $bta in $btatt If $bta.innerHTML = "Show it" Then $bta.click() EndIf Next Link to comment Share on other sites More sharing options...
RABANY1 Posted April 18, 2018 Author Share Posted April 18, 2018 Just now, RABANY1 said: <a class="boutonAction" href="javascript:fcDoAction('AFFICHER__CD')">Show it</a> I tried $btatt = .document.getElementsByTagName("a") For $bta in $btatt If $bta.innerHTML = "Show it" Then $bta.click() EndIf Next Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 18, 2018 Moderators Share Posted April 18, 2018 @RABANY1 please pay attention to where you post in the future. The DEV forum very clearly states: Quote Do not create AutoIt-related topics here, use AutoIt General Help and Support We even bolded it for you Edit: I also notice you have an account under @rabany, which I have deleted as multiple accounts are not allowed on this forum. RABANY1 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
RABANY1 Posted April 18, 2018 Author Share Posted April 18, 2018 4 minutes ago, JLogan3o13 said: @RABANY1 please pay attention to where you post in the future. The DEV forum very clearly states: We even bolded it for you Edit: I also notice you have an account under @rabany, which I have deleted as multiple accounts are not allowed on this forum. Excuse me it just my first activity on the site Link to comment Share on other sites More sharing options...
Subz Posted April 18, 2018 Share Posted April 18, 2018 Can you try: #include <IE.au3> Local $oIE = _IECreate("URL") _IELoadWait() Local $oLinks = _IETagNameGetCollection($oIE, "a") For $oLink In $oLinks If $oLink.ClassName = "boutonAction" Then _IEAction($oLink, "click") ExitLoop EndIf Next Link to comment Share on other sites More sharing options...
Juvigy Posted April 20, 2018 Share Posted April 20, 2018 From your code i see: If $bta.innerHTML = "Show it" Then , but from the html code picture i see that the innerhtml is different - something in French. 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