| || |
Looping Though Nested Tables
I have the following code that loops through all the tables on a specific page.
I need to gather that info. However, none of the tables have any type of ID, So i know i will have to use the index.
<font class="small">Code:</font><hr /><pre>
set DrillTable=Browser("Browser").Page("Page").Frame(" MainWindow").Object.all.Tags("TABLE")
index = 0
For Each Element in DrillTable
index = index + 1
Msgbox "Index="& index &" - "& Element.getAttribute("innertext")
What is the best way to loops through each sub table? I think the main table that has the content of the pages starts with index 3.
Re: Looping Though Nested Tables
Also, each page is differnt, so I cant say the data i want is allways in a specific index. So i need to loop though all the tables to determine which one i want.