| || |
Can't set index to webtable
We've have multiple similar webtables on a page and to work with each individual webtable I'm trying to set ordinal identifier during run time using couple of options -
Option 1 -
Browser("A").Page("B").Webtable("C").SetTOProperty "Index", 1
However, QTP is not setting the index property properly. It is retrieving the table based on the original index property we used to save the table in OR during runtime.
Option 2 -
Set oTable = Description.Create()
oTable("column names").value = "xyz"
oTable("html tag").value = "TABLE"
oTable("Index").value = 1
Changing the index value using above method worked well and QTP retrieved the right webtable.
I'm wondering why Option 1 is not working. Is there a way to make Option 1 working?
try disable smart identification in first case.