Automating MSAA Tree

Ask general questions here.
t4k9
Posts: 10
Joined: Wed Mar 07, 2012 11:00 pm

Automating MSAA Tree

Post by t4k9 » Fri Nov 16, 2012 6:06 pm

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
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Automating MSAA Tree

Post by Support Team » Mon Nov 19, 2012 11:47 am

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

t4k9
Posts: 10
Joined: Wed Mar 07, 2012 11:00 pm

Re: Automating MSAA Tree

Post by t4k9 » Wed Nov 21, 2012 5:23 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Automating MSAA Tree

Post by Support Team » Thu Nov 22, 2012 10:08 am

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)