Forum Discussion
Gadzilla
14 years agoContributor
Try to use MSAA plug-in (read "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 you can be faced with the next issue.
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.
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 you can be faced with the next issue.
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.