How to get the text from inapplicable ComboBox?

Class library usage, coding and language questions.
a30008
Posts: 4
Joined: Wed Jun 24, 2009 7:28 am

How to get the text from inapplicable ComboBox?

Post by a30008 » Wed Jun 24, 2009 7:37 am

I want to get current value(Text or SelectedItemText) of a ComboBox even if it is inapplicable(gray out),but it seems that Renorex can't get the current value(Text or SelectedItemText) of a ComboBox when it is inapplicable(gray out).Could anyone help me?
BTW, the application under test is based on .net 3.5 WPF.

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

Re: How to get the text from inapplicable ComboBox?

Post by Support Team » Wed Jun 24, 2009 11:57 am

Hello a30008,
I cant`t reproduce that issue.
Do you use 3rd party controls in your application?

Regards,
Christian
Ranorex Support Team

a30008
Posts: 4
Joined: Wed Jun 24, 2009 7:28 am

Re: How to get the text from inapplicable ComboBox?

Post by a30008 » Mon Jun 29, 2009 4:41 am

Hello Christian,
Yes, the combobox what we are using is different from System.Windows.Forms.ComboBox. The combobox is derivate from System.Windows.Controls.ComboBox, and plus several Interfaces.

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using AcpBusinessLayer;
using AcpUILib;
using AcpUI.Common;

namespace AcpUI
{
public class AcpComboBox : ComboBox,
IAcpUICtrlBase, IAcpUIValueCtrlBase<string>,
IAcpUIParentCtrlBase,
IAcpUIChildCtrlBase,
IAcpUICommon
{

}
}

We tried Testcomplete 7, It can get the "Text" and "SelectedItemText" of our custom combobox when it is inapplicable.
I want to know are there workaround to get the "Text" or "SelectedItemText" when it is inapplicable?

Regards,
a30008

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

Re: How to get the text from inapplicable ComboBox?

Post by Support Team » Wed Jul 01, 2009 10:42 am

What do you exactly mean with 'inapplicable': IsEnabled=false, IsEditable=false...?
If you derive from the .net ComboBox it should be no problem identifying the properties. What does the Ranorex Spy show when you track the ComboBox?
Could you send us a Ranorex Snaphot (http://www.ranorex.com/support/user-gui ... html#c2072) of your application to support_(at)_ranorex.com.

Regards,
Christian
Ranorex Support Team