| || |
Retrieve web table name dynamically
In a given webpage, there are multiple rows, each being a table, for eg. Table Name "Main1, Main2 etc."
Within these rows there are multiple columns which each column is a separate table. So if i have 5 records and each record has the column BidPrice, then actually I have 5 tables of BidPrice in the webpage.
The index no of the Column keeps changing, and the column name is refered as BidPrice_123456 and these digits also keep changing. So I need to retrieve the Table name in runtime, to refer to the value in the table.
I have tried using regular expression and also descriptive programming, but these are only a part of the solution, what i mainly need is what object will use what function, to get the Webtable name in runtime.
QTP show the code as Browser("Netscape").Page("STAGE").Frame("BotFrame_ 2").WebTable("BidPrice_1")
The object Frame does not support GetROProperty to retrieve the Webtable name. I want to get the Table name BidPrice_1 which QTP recognizes or the HTML code BidPrice_123456 in runtime.
Windows Ver: XP, SP1
Re: Retrieve web table name dynamically
I believe you will need to go in for a DOM based solution.
For details on DOM go to http://www.w3schools.com
and if you want to know how to use DOM then you browse to my web site.