Issues with TreeItem:Select() and TreeItem:Expand() APIs.

Ask general questions here.
cancerion
Posts: 30
Joined: Tue Jun 16, 2009 6:15 pm

Issues with TreeItem:Select() and TreeItem:Expand() APIs.

Post by cancerion » Mon Sep 07, 2009 12:39 pm

Hi,

I am using Ranorex 2.1.3 version.

I am getting issues with TreeItem:Select() and TreeItem:Expand() APIs.Both API’s are not giving expected behavior consistently. It gave ‘Setting Attribute’ failure exception.

Is it a known issue?

Is there any recommended steps to do before using these API’s?

Thanks,
Sachin

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Issues with TreeItem:Select() and TreeItem:Expand() APIs.

Post by Support Team » Tue Sep 08, 2009 10:08 am

The supported actions and attributes of elements are technology specific and, unfortunately, not all technologies provide all the functionality needed to implement all actions and attributes. That's why an OperationFailedException (with an inner NotSupportedException) may be raised when you invoke an action or try to set the value of an attribute for some elements, especially for those relying on the MSAA technology.

For those actions/attributes you get such an exception, you have to use the mouse or the keyboard as a workaround to achieve the desired functionality.

Regards,
Alex
Ranorex Support Team
.
Image