How to identify HTML tables developed with DIV and SPAN tags as 'WEBTABLE'? - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: How to identify HTML tables developed with DIV and SPAN tags as 'WEBTABLE'? (/Thread-How-to-identify-HTML-tables-developed-with-DIV-and-SPAN-tags-as-WEBTABLE) |
How to identify HTML tables developed with DIV and SPAN tags as 'WEBTABLE'? - bell.ramesh - 08-20-2012 Hi All, I have muliple tables in my webpage and all these were developed using DIV and SPAN tags. QTP unable to identify these tables as WEBTABLE instead it's treating each cell as a WebElement. Hence am not able to retrieve number of rows, columns and corresponding cell values. Moreover all tables are dynemic interms of rows and columns, means sometimes 5 rows, 5 columns and sometimes 10 rows 7 columns. SO it is very important for me to retrieve no.of rows and columns. currently code is looking like below: Browser().Page().WebElement() '' This is for each cell and there is no WebTable object. And i would like to see as below: Browser().Page().WebTable() '' for entire table grid in webapge I would appreciate if someone could assist me in how to deal with such tables in QTP? Thanks in Advance, Ramesh RE: How to identify HTML tables developed with DIV and SPAN tags as 'WEBTABLE'? - Victor~ - 08-20-2012 Well, Div and Span tags are used to separate the document in the HTML page so that is not an issue, i guess there is some issue with the add-ins. and if u are using a Repository then i would suggest u to go with descriptive programming and use index property of the table... P.S. : I m newbie @ QTP. Victor~ |