Page 1 of 1
Automating MSAA Tree
Posted: Fri Nov 16, 2012 6:06 pm
by t4k9
Hi:
We are currently attempting to automate some of our relatively older applications. We are experiencing a problem with a Tree, or TreeView.
We can find the tree using the Spy, but the tree has not children nodes. (UI does have childrens, whether expanded or not)
I tried using RemoteInvoke with Ranorex.Control and was not successful accessing the object.
Atthaced is the snapshot.
Any comments would be helpful on how to access the UI Tree control .
Thanks,
TK
Re: Automating MSAA Tree
Posted: Mon Nov 19, 2012 11:47 am
by Support Team
Hi,
Some general questions at first:
Do you have installed the .Net 4.0 full/extended version on your machine?
Do you have already tried it with the current version (
3.3.4)?
Is this a custom or a standard TreeView control?
Are you able to identify the tree items with Inspect?
Do you know our blog about invoke remotely respectively about how to add accessibility?
Transfering data to and from a .NET control
Enabling automation for 3rd party controls by adding Accessibility
There are also diffenerent forum posts about how to use invoke remotely, here are two links:
link1,
link2.
Regards,
Markus
Re: Automating MSAA Tree
Posted: Wed Nov 21, 2012 5:23 pm
by t4k9
Thanks. For some reason, Ranorex Spy could not identify the TreeItem (or TreeNode). I was successful in using remoteInvoke to grab the System.Windows.Controls.TreeView. Once I have access of the TreeView object, I was able to click on the nodes using the Bound property of TreeNode.
Greatly appreciate the Forum's help.
TK
Re: Automating MSAA Tree
Posted: Thu Nov 22, 2012 10:08 am
by Support Team
Hello,
Thank you for the Snapshot.
Please install our current version of Ranorex from
here.
Is it possible to track the TreeItem with 'Instant Tracking'?
Simply move your mouse pointer over a menu item and press the <CTRL> + <Win> key combination to instantly track the UI element.
If it is still not possible to find your item you could disable MSAA filter by using an API call:
Configuration.Current["plugins.msaa.FilterEnabled"] = false;
Regards,
Markus (T)