why I can’t set selectedITemIndex of combo box ? : General Questions

why I can’t set selectedITemIndex of combo box ?

Ask general questions here.

why I can’t set selectedITemIndex of combo box ?

Postby mohan » Thu Aug 18, 2011 3:07 pm

Hi there,

I’m getting an exception whenever trying to set some of the property of combo Box like DropDownVisible, SelectedItemIndex etc. let say I'm trying to execute the below line of code

objShipment.FormShipment.cmbFrom.SelectedItemIndex = 3;

Thrown exception “Setting attribute 'selecteditemindex' failed on element '{ComboBox:ComboBox}'.” {"The operation is not supported."}

May I know why I can’t set selectedITemIndex of combo box? . If I do the same operation with Microsoft dot.net combo, it doesnot throw any exception.

FYI, The Application under Test is developed using VB6.0 and Ranorex version is 3.0.5.

Regards,
Mohan
mohan
 
Posts: 9
Joined: Tue Aug 09, 2011 12:54 pm

Re: why I can’t set selectedITemIndex of combo box ?

Postby Support Team » Fri Aug 19, 2011 12:29 pm

The Ranorex.ComboBox class is an adapter for combo boxes from all kind of technologies. And while setting the SelectedItemIndex should work in general, setting this property is not supported for each and every technology supported by Ranorex.
For example, setting this property for a Ranorex.ComboBox corresponding to a Windows Forms ComboBox control will work, but setting it for a combo box from the MSAA technology is not supported due to lack of functionality within MSAA.

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest