How to identify the object name of a table in a web browser?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022
02:28 PM
12-19-2022
02:28 PM
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:
Labels:
- Labels:
-
Script Tests
-
Web Testing
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022
02:10 AM
