Forum Discussion

DBRichter's avatar
DBRichter
Regular Visitor
2 years ago

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

I am using TestComplete Version: 15.46.9.7 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("https://qa.raic.ai/imagefolder/datasets").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: