I have a grid in my application and I spied using the TestComplete tool. It identifies its WndClass as "TG60.ApexGrid32.20". I am not able to get the number of cells or rows properly. Anyone has any experience with objects of this class? Does any other application support this class? Any help would be greatly appreciated!
相关问题
- How to use VBA or Powershell to export lists from
- How to trigger a click on a chrome extension butto
- Element not clickable since another element obscur
- driver.quit() does not close browser windows
- Automation support for Visual Basic 6 ListView
相关文章
- Open file from windows file dialog with python aut
- Reading data from Excel in Haskell
- Toad: 10.6: Seek clear instructions on automating
- Need to mock google OAuth2 service
- How do I bring Set Focus of MDI Child Window using
- Python | PhantomJS not clicking on element
- How to compare two images in Robot Framework
- Add Automation ID to bound combo box items
I haven't used this grid but I guess it is a case of a
virtual table
.virtual tables are built in runtime so you can't access the data by cells because the cells don't yet exist while you try reaching them.
what you need to do is scroll through the whole table and get all the rows by "scanning" the table.
Your grid seems to be Apex True DBGrid (which later became ComponentOne True DBGrid). If not, update your question.
TestComplete doesn't support True DBGrid out of the box, but you can use the grid's native properties and methods for automation. For example, you can use the native
Columns
.Count
property to get the number of columns.Here're examples of automating True DBGrid using its native members:
Click cells
Click row indicators
To see what properties and methods you can use for automation, examine your grid in TestComplete's Object Browser. You can also check the True DBGrid documentation, but it applies to the latest True DBGrid version and may not apply to earlier versions.