| || |
Is it good technique?
Actually i have 40 webtable and all has same field. Each table has 26 cells.I tried to find out any unique property to recognize the webtable and retreive the cell value from webtable but unfortunately i can't. I talked to mercury suppport but till now they couldn't give me answer. so what i did i have added 40 webtable object in my object repository and i am retrieving the cell valuei think its not a good idea but i am not sure what i can do.I have added webtable with name like ServiceFrom:1. ServiceFrom:2,
ServiceFrom:3, .............ServiceFrom:40. After adding in my OR i am using this VB commands.
For i=1 to 40
var_GetCellData = Browser("FEPDirect Retrieval").Page("FEPDirect Retrieval").WebTable("Service From:"&i).GetCellData(2, 2)
Please give me any idea !
Re: Is it good technique?
you can use Index property.
For i=0 to 39
var_GetCellData = Browser("FEPDirect Retrieval").Page("FEPDirect Retrieval").WebTable("index:"&i).GetCellData(2 , 2)
For this you do not require webtable object in OR,but check the range of index values to all the tables first.