Search the Community
Showing results for tags 'IE UDF'.
-
Hello, I'm working on pulling some data from a table in Internet Explorer and writing the contents, on a row by row basis, into a csv file. . I am able to loop through to an extent but have the following questions: 1. How do I determine the end of a row 2. Sometimes the table data will have a hyperlink attached. I'd very much like to capture that url in my csv file. If I use the _IETableWriteToArray function, I am able to do everything I need except for getting the URL. Does anyone know a way to pull the URL for certain cells in the table? I have looked at a For...Next using _IETagnameGetCollection but am not successful. Thanks in advance for any assistance! Code below: $oTable = _IETableGetCollection($oIE,0) $oTRs = _IETagnameGetCollection($oTable, "TR") For $oTR In $oTRs $oTDs = _IETagnameGetCollection($oTR, "TD") For $oTD In $oTDs $sRowCont = _IEPropertyGet($oTD, "innertext") msgbox(0,"Cell Text:",$sRowCont) $oTD = _IETagnameGetCollection($oTR, "TD", 0) $oLink = _IETagnameGetCollection($oTD, "a", 0) msgbox(0,"Link Text",$oLink ) ;ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $blnFound = ' & $blnFound & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console Next Next
- 4 replies
-
- IE UDF
- HTML Table
-
(and 1 more)
Tagged with: