Forum Discussion

DBRichter's avatar
Regular Visitor
2 years ago

How to identify the object name of a table in a web browser?

I am using TestComplete Version: x64.  I have a web page that contains a table that can be different every time I open that page.  I need to read values from the cells in the table, but I can not find the table object name so I can use TableObj.Values(aRow, aColumn) in JavaScript.  The Object Spy returns a value like this:  Sys.Browser("chrome").Page("").FindElement("//table[@aria-describedby=(//div[.='Showing 1 to 10 of 23 entries']/@id)]").


How do I use that with the Values property?  If the next time I nav to the web page with this table, it may have more or less entries, so the ".='Showing 1 to 10 of 23 entries']/" may change.  This is a pic of the table: