Forum Discussion
Gadzilla
15 years agoContributor
We have the same problem with files/folders recognition in Explorer window (Win 7 platform).
AQA support advised us to use MSAA to access the problematic control (see the "Testing with Microsoft Active Accessibility" help topic). You should add class name of you problematic control (e.g. "DirectUIHWND") to the list of windows that will be shown as MSAA objects.
To do this just open "Default Project Properties" dialog, navigate to the "Project -> Open Applications -> MSAA" node, and add class name of your control, which should be recognized as MSAA object (e.g. "DirectUIHWND"). Also note, that "MSAA Open Application" plug-in should be installed.
Once expanded via MSAA, the "DirectUIHWND" object exposes properties, methods and child objects you can use to work with it.
In your Object Browser you should see something like that:
...Window("SHELLDLL_DefView", "ShellView", 1).List("Items View").ListItem("$Recycle.Bin")
...Window("SHELLDLL_DefView", "ShellView", 1).List("Items View").ListItem("my test file.txt")
...Window("SHELLDLL_DefView", "ShellView", 1).List("Items View").ListItem("My_Test_Folder")
and so on...
But here comes next problem.
List("Items View") MSAA object shows only visible child objects in the Object Browser tree (e.g. children, with Visible = true). Also List("Items View").ItemCount shows only number of visible children ListItem.
To find some item, which is not visible on screen, you should do some scroll with mouse wheel on you control, and review the children objects of List("Items View") object.
We are working a lot with files/folders, which are displayed in Explorer window on all Win platforms, but approach, which was described above, too much slows down scripts execution speed.
Can someone suggest a different approach to solve this problem?
Thanks!
Related Content
Recent Discussions
- 14 hours agomarkos