Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

IE Nested Tables - How to get to a nested table?

$
0
0

First off - I am really loving what I am seeing with the IE automation. The app I am automating is very poorly designed so that part is a struggle. But the results are golden ;)

 

The web app I am automating heavily uses nested tables. When I use _IETableGetCollection($oIE,-1) I find that there are four tables. that are nested in a frame. I am able to get data out of some of the tables - but it is not from the table I need it from. I am thinking that the issue is I am addressing the wrong frame. Here is what I have so far:

AutoIt         
#include <IE.au3> #include <Array.au3> $URL="https://someurl.com/" Local $oIE = _IECreate($URL,1,1,1,1) ; Presses the search button to change to the search window. _IELinkClickByText($oIE, "SEARCH") _IELoadWait($oIE, 250) Local $oForms = _IEFormGetCollection($oIE) Local $oFrame = _IEFrameGetObjByName($oIE, "main") $iFrame = _IEFrameGetObjByName($oFrame, "bottom") Local $oForm = _IEFormGetObjByName ($iFrame, "search") Local $oQuery1 = _IEFormElementGetObjByName($oForm,"ClientNumber") Local $ClientNumber = "18590" ;ClipGet() _IEFormElementSetValue ($oQuery1,$ClientNumber) _IEFormSubmit($oForm) _IELoadWait($oIE, 500) ; Look at the results $oTable = _IETableGetCollection($oIE,1) ;$oTable = _IETableGetCollection($oIE,-1 ;Returns 4 although there are many more tables nested.) ;Local $iNumTables = @extended ;MsgBox(0, "Table Info", "There are " & $iNumTables & " tables on the page") $aTableData = _IETableWriteToArray($oTable) _ArrayDisplay($aTableData)

I am wondering if there is a limited to the level of nested tables that the functions can see or do I need to somehow get the functions to look at the "bottom" iframe page?

 

I wish I could show you the website but it is proprietary, behind firewalls and vpn tunnels, etc. It is a piece of work though. 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>