07-06-2012, 03:04 PM
Hi all,
Good Afternoon.
I am having how to increment the index number for a web table.
i used following code, but it is showing only first table values.
for all table names are same.
Thanks & Regards,
Ranjit Kumar
Good Afternoon.
I am having how to increment the index number for a web table.
i used following code, but it is showing only first table values.
for all table names are same.
Code:
If Browser("Browser").Page("Routings - SAS Cargo/Airfreigh").WebTable("From").Exist(50) Then
If Browser("Browser").Page("Routings - SAS Cargo/Airfreigh").WebTable("Flight").Exist(50) Then
l = 6
Do Until Browser("Browser").Page("Routings - SAS Cargo/Airfreigh").WebTable("Flight").SetTOProperty("index", l)
Set Tblobj = Browser("Browser").Page("Routings - SAS Cargo/Airfreigh").WebTable("Flight")
r_cnt = Tblobj.RowCount
col = 2
For i = 1 to r_cnt
c_cnt = Tblobj.ColumnCount(i)
For j = 1 to c_cnt
a_celldata = Tblobj.GetCellData(i,j)
Next
Next
l = l + 1
Loop
Thanks & Regards,
Ranjit Kumar