10-06-2010, 10:17 AM
Two tables embedded in 1 is not clear for me, can u brief me that point?
Here is answer for how much i understood your question, lemme know if the answer is not clear.
You can get the total number of rows and columns for dynamic table as:
Say for example, if the table has the header as "header" which has the unknown number rows, then
Here is answer for how much i understood your question, lemme know if the answer is not clear.
You can get the total number of rows and columns for dynamic table as:
Say for example, if the table has the header as "header" which has the unknown number rows, then
Code:
'Get total number of columns first
cCount=Browser("title:=browser").Page("title:=page").WebTable("name:=header").getColumnCount
For i=0 To cCount-1
'Get total number of rows
rCount=Browser("title:=browser").Page("title:=page").WebTable("name:=header").getRowCount(i)
' now you can get the cell data as:
For j=0 To rCount-1
data=Browser("title:=browser").Page("title:=page").WebTable("name:=header").getCellData(i,j)
' Use the data
msgbox data