Micro Focus QTP (UFT) Forums
Web Table With No Name - 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Web Table With No Name (/Thread-Web-Table-With-No-Name)



Web Table With No Name - zunebuggy - 09-05-2017

We have an internal web application that has a table that displays monetary data and totals.  The columns are fixed with headers, but the row count is dynamic.  The problem is, the vendor that created and maintains the web app does not name the tables so when I try to do


Code:
 rowCount = Browser("<our browser title>").Page("<page title>").WebTable("<??????>").RowCount

I can't because I to not have a name for the webtable.  I am not even sure how to add the table to the Object Repository or if that would even help.

The vendor is NOT going to update their html to include table names.  It's really a miracle the site functions at all.  Please let me know if there is another way to read this dynamic table to verify the contents.

Thank you


RE: Web Table With No Name - supputuri - 10-03-2017

user the spy, I am sure they might have used some html id and class to identify the table.


RE: Web Table With No Name - supputuri - 10-03-2017

Table should have some other unique property. Please use Spy to find out the unique property and use the same in OR or Descriptive Programming.