08-20-2012, 09:59 AM
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
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