Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Error setting text to UltraUiaComboBox with CodedUI
posted

I get the following error when the Coded UI Test Builder try to run a recorded tests that setting the text in the UltraUiaComboBox:

           

Test method CodedUITestProject1.CodedUITest1.CodedUITestMethod1 threw exception:

System.NotSupportedException: Property "EditableItem" could not be set due to current state of ComboBox

Result StackTrace:          

at Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider.MapAndThrowException(Exception exception)

   at Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider.SetPropertyValueWrapper(UITestControl uiControl, String propertyName, Object value)

   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)

   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyPrivate(String propertyName, Object value)

   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.<>c__DisplayClass3e.<SetProperty>b__3d()

   at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)

   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetProperty(String propertyName, Object value)

   at Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinComboBox.set_EditableItem(String value)

   at CodedUITestProject1.UIMap.RecordedMethod2() in c:\MES\TFS\GeneralProjects\TFS services\CodedUITestProject1\CodedUITestProject1\UIMap.Designer.cs:line 168

   at CodedUITestProject1.CodedUITest1.CodedUITestMethod1() in c:\MES\TFS\GeneralProjects\TFS services\CodedUITestProject1\CodedUITestProject1\CodedUITest1.cs:line 31

Can anyone help with that error? I feel hopeless!

  • 2575
    Offline posted

    Vered,

    Please obtain and register a key for Infragistics products. CodedUI is only supported with licensed products.