LarryDalooza Posted July 21, 2008 Share Posted July 21, 2008 (edited) Can you access the info in the "onclick" of an anchor tag? I have an <A> that I need to click that is only distinguishable by it's iteration and it's "onlick" information. I would like to be able to identify it by what I find in it's "onclick" info ... is that info exposed? Lar. Edited July 21, 2008 by LarryDalooza AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
weaponx Posted July 21, 2008 Share Posted July 21, 2008 If there is nothing distinguishable about it then what do you click on? It has to be an image, text, button, etc... Link to comment Share on other sites More sharing options...
LarryDalooza Posted July 21, 2008 Author Share Posted July 21, 2008 Thanks for considerations... I found this... so I am good... I loop around... $onclick = $obj.getAttributeNode("onclick") If StringInStr($onclick.value,"blah blah") Then... Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
diikee Posted July 21, 2008 Share Posted July 21, 2008 Larry, Can you give the entire solution to your problem incase someone else runs into the same problem?? Link to comment Share on other sites More sharing options...
weaponx Posted July 21, 2008 Share Posted July 21, 2008 (edited) Larry, Can you give the entire solution to your problem incase someone else runs into the same problem?? It's pretty simple. $oIE = _IEAttach("http://blablabla.com") $oTags = _IETagNameGetCollection ($oIE, "a") For $oTag in $oTags $onclick = $oTag.getAttributeNode("onclick") If StringInStr($onclick.value,"blah blah") Then .... Next Edited July 21, 2008 by weaponx 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