Micro Focus QTP (UFT) Forums
Get 85th no. web table - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Get 85th no. web table (/Thread-Get-85th-no-web-table)



Get 85th no. web table - Ragini - 01-10-2011

Hi guys

I have one web page .In that web page there are 100 web tables.I want to get 85th no of web table..


Please help


RE: Get 85th no. web table - manishbhalshankar - 01-11-2011

Hi Ragini,
Can you provide more details of the web tables. Are the properties of all tables same?


RE: Get 85th no. web table - Ragini - 01-11-2011

Hi manishbhalshankar

Thanks for reply. yes Properties are same..mean to say class is same. web table name is different.once again i am repeating my question. In my web page there are 100 web tables. suppose--w1,w2,w3........w100.Now i want to print 85th no web table.Please reply


Thanks
Ragini


RE: Get 85th no. web table - manishbhalshankar - 01-11-2011

Hi Ragini,
Try using the name or index property to identify the 85th table.


RE: Get 85th no. web table - Ragini - 01-11-2011

Hi Manish
Kindly mention in detail.Can i use descriptive programming here...


Thanks in advance
Ragini


RE: Get 85th no. web table - supputuri - 01-12-2011

Hi Ragini,

You can use the below snippet.
Code:
Browser("Browser").Page("Page").WebTable("Class:=WebTable";"Index:=84").Highlight 'Highlights the 85th Table in the page
now you can perform the actions on the table, but the better way is try to provide any of the unique properties so that the script execution won't be affected and the OI will be easy and quick.
Let me know if you need any more info.


RE: Get 85th no. web table - Ragini - 01-12-2011

Thanks supputuri and Manish for reply. I got the concept.Rolleyes