Jury Posted March 3, 2013 Posted March 3, 2013 (edited) 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 March 3, 2013 by Jury
Jury Posted March 3, 2013 Author Posted March 3, 2013 (edited) 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 March 3, 2013 by Jury
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now