Combo Box Items : Automation API

Combo Box Items

Class library usage, coding and language questions.

Combo Box Items

Postby atom » Thu Oct 01, 2009 12:07 pm

Hiya

We have a problem using the ITEMS property on a Win32 combo box
The collection only seems to contain the currently selected item, and not all available items

Using the spy tool with instant tracking, the ComboLBox is reported as:
/list[@controlid='1000']
i.e. Not a descendant of the combo box but on the top level

Is this a bug?

Regards
Clayton
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Re: Combo Box Items

Postby Support Team » Thu Oct 01, 2009 4:33 pm

Hi atom,
the items in the Items property only appear if you open the combo box list otherwise the ListItem`s doesn`t exist. So during accessing the combo box items you should assure that the ComboBox list is opened.

You are right, the comboBox appears on the top level but also beneath the ComboBox as Ranorex.List

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


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests