Page 1 of 1

How to get the text from inapplicable ComboBox?

Posted: Wed Jun 24, 2009 7:37 am
by a30008
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.

Re: How to get the text from inapplicable ComboBox?

Posted: Wed Jun 24, 2009 11:57 am
by Support Team
Hello a30008,
I cant`t reproduce that issue.
Do you use 3rd party controls in your application?

Regards,
Christian
Ranorex Support Team

Re: How to get the text from inapplicable ComboBox?

Posted: Mon Jun 29, 2009 4:41 am
by a30008
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

Re: How to get the text from inapplicable ComboBox?

Posted: Wed Jul 01, 2009 10:42 am
by Support Team
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