Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Can't click 2nd Div Object

$
0
0

I realized that I can see 2nd object when I "inspect element" but I cant see it in "Source Code" . What is the solution

 

I have a strange problem, don't know what is it about. I want to click an object on webpage which classname is "btn3"
But there are 2 of "btn3" objects on the page. The problem is I can find first one but can't find second one. So here it is
 
First one:

<a class="add-btn btn3-wrap" href="/add_edit_sites.html"> <span> </span> <div class="btn3">Add Site/Page</div></a>

Second one:

<a class="single_like_button btn3-wrap" onclick="openFbLWin_857528();"> <span> </span> <div class="btn3">Like</div></a>

And my AutoIt code: (didn't put click code, just put msgbox to see if I can find or not but just saw msgbox only 1 time)

$oDivs = _IETagNameGetCollection ($amf_IE, "div") For $oDiv in $oDivs     If (String($oDiv.classname)="btn3")  Then         MsgBox(0,"","")     ExitLoop     EndIf Next

I just tried to use innerText but again I couldn't find second object. I think it is not about AutoIt code, there must be something I'm missing


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>