Search the Community
Showing results for tags 'div tag'.
-
Can you guys help me with this. I'm sure it's simple but I'm still pretty green with Autoit. I can grab the innerHTML from the Div tag and the links that I need but, I need the "data-vin" as an identifier. Basically something like this, If my script sees this object "data vin" then get the inner text of the object (the vin #) and the next link below it. Here's what I've got so far and a link to my website. As always, any help is greatly appreciated! If you view source, look at line # 1535 #include <IE.au3> Local $oIE = _IECreate("http://www.beamantoyota.com/new-inventory/index.htm") ;Get collection of elements tagged "LI" for List Item $oListItems = _IETagNameGetCollection ($oIE, "LI") For $oListItem In $oListItems $odivs = $oListItem.getElementsByTagName("div") For $odiv in $odivs $text = $odiv.class ConsoleWrite("Div (text): " & $text & @CRLF) ;Get all the elements tagged "a" for Anchor ;This needs an error handler in case the list item ; doesn't have any anchors $oAnchors = $oListItem.getElementsByTagName("a") For $oAnchor In $oAnchors ;Get the href of each anchor $sHref = $oAnchor.href ConsoleWrite(" Link Info: " & $sHref & @CRLF) Next Next Next