06-07-2012, 10:41 AM
Hi Sankalp,
I am sending the Screenshot of my web table, in that last column i circled it. For that link i am trying to put the Index property. But it is not working.
I am doing following code for row and column count and also the cell data.
I am sending the Screenshot of my web table, in that last column i circled it. For that link i am trying to put the Index property. But it is not working.
I am doing following code for row and column count and also the cell data.
Code:
If Browser("Browser").Page("ShipmentLink - Sailing_2").WebTable("Seq_2").Exist(5) Then
a_rows = Browser("Browser").Page("ShipmentLink - Sailing_2").WebTable("Seq_2").GetROProperty("rows")
a_cols = Browser("Browser").Page("ShipmentLink - Sailing_2").WebTable("Seq_2").GetROProperty("cols")
l = 0
For i = 1 to a_rows
For j = 1 to a_cols
If Browser( "Browser").Page("ShipmentLink - Sailing_2").WebTable("Seq_2").Exist(20)Then
a_celldata = Browser("Browser").Page("ShipmentLink - Sailing_2").WebTable("Seq_2").GetCellData(i,j)
End If
If a_celldata = "Details" Then
Do while Browser("Browser").Page("ShipmentLink - Sailing_2").WebTable("Seq_2").ChildItem(a_rows, a_cols, "WebElement", l).Exist(5)
Set objChildItem = Browser("Browser").Page("ShipmentLink - Sailing_2").WebTable("Seq_2").ChildItem(a_rows, a_cols, "WebElement",l)
objChildItem.Click
l = l+1
Loop
Next
Next
End If