| || |
not able to access webelement in the grid .
We used to have webtable in our application in which the rows had checkboxes in it. I was importing an excel and then used the following code to look for the names that were same as that in the imported excel and then set them ON.
RowCount1 = DataTable.GetSheet("Action1").GetRowCount
For j = 1 To RowCount1
RowCount2 = Browser("< >").Page("< >").WebTable("< >").RowCount
rooms = DataTable.GetSheet("Action1").GetParameter("h323_r ooms")
For i = 1 To RowCount2
Celldata = Browser("< >").Page("< >").WebTable("< >").GetCellData(i, 2)
If Celldata = rooms Then
Browser("< >").Page("< >").WebTable("< >").ChildItem(i ,1,"WebCheckBox",0).Set "ON"
But now the application is redone using EXT JS and the above code is not able to retrieve the data as GUI has changed for the grid. The current webtable is attached. I am not able to read the webelements from the webtable dynamically because I am not able to access the webelement in each row. GetCellData returns everything that is displayed in the grid.If I use Object Spy for the row, every row is a webtable in itself.
However I can select specific rows based on webelements if I don't use the datatable.
Any help in this will be highly appreciated.