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

IE: Check if link attribute exist

$
0
0
Hello, I need to check for an attribute in the link tags in the html. But the attribute is not presented in all links, and that produces this error: ("The requested action with this object has failed.:").

For example the html may look like this:

<A class=reference-link href="anhor184" id=B978></A>

or

<A class=reference-link href="anhor184"></A>

Here is an extract of my script:


[ autoit ]      
$oLinks = _IELinkGetCollection ($oIE) For $oLink In $oLinks If ($oLink.type <> "0") Then ConsoleWrite (", type:" & $oLink.type & @CRLF) ; Add to array... EndIf

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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