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.
How to get the text from inapplicable ComboBox?
- Support Team
- 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?
Hello a30008,
I cant`t reproduce that issue.
Do you use 3rd party controls in your application?
Regards,
Christian
Ranorex Support Team
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?
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
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
- Support Team
- 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?
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
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