Jump to content
Sign in to follow this  
Jury

_IEPropertyGet help

Recommended Posts

Jury

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

Share this post


Link to post
Share on other sites
Jury

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

Share this post


Link to post
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
Sign in to follow this  

×