Jump to content

_IEPropertyGet help


Recommended Posts

If I attach to a page which contains the data in the attached file test.html why doesn't the following work? I'm working towards this output:

../opinions/SA34_12.html|RICHARD GOLLIN v. TRIP ADVISOR LIMITED|Sheriff Principal Derek C.W. Pyle|25/02/2013|28/02/2013

but can't get the data - I thought that "C004_gridStructuredResults_ctl00__"& $i" can't be done but it doesn't even work if I put in a static example like "C004_gridStructuredResults_ctl00__"5.

#include
$oIE = _IEAttach("Sheriff Court")
For $i = 1 To 5
$oDiv = _IEGetObjById($oIE, "C004_gridStructuredResults_ctl00__"& $i")
ConsoleWrite(_IEPropertyGet($oDiv, "innertext") & @CRLF)
Next
Edited by Jury
Link to comment
Share on other sites

Sorry I've been kindly helped on something like this before - should've looked - this is getting there:

#include
$oIE = _IEAttach("Sheriff Court")
For $i = 1 To 5
Local $oSpans = _IETagNameGetCollection($oIE, "tr")
For $oSpan In $oSpans
If StringLeft($oSpan.className, 6) = 'rgRow' Then
;MsgBox(0, "Info", "Class: " & $oSpan.className & " Text: " & $oSpan.innerText)
ConsoleWrite("Class: " & $oSpan.className & " Text: " & $oSpan.innerhtml & @CRLF)
EndIf
Next
Next
Edited by Jury
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...