Jump to content

Display results of "getElementsByClassName"


Eggie6
 Share

Recommended Posts

Hi all,

I have a script 

#include <IE.au3>
Local $oIE = _IEAttach("anythinghere")
$tags = $oIE.document.GetElementsByTagName("div")
$oCollection = $oIE.document.getElementsByClassName("x-panel-btn-td")
MsgBox(0, "", $oCollection.length)

which shows 8 results, how can i see what those results are, and i need also to get ID of 4th in a row of them


Please help :)

Link to comment
Share on other sites

if your result is an array, you should use _ArrayDisplay  to view them.

so something like...

_ArrayDisplay($oCollection)

or maybe to show only item 4...

MsgBox(0, "", $oCollection[3])

 

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...