Getting weird COM exceptions with drop down/combo box

4 posts, 0 answers
  1. Will
    Will avatar
    1 posts
    Member since:
    Jul 2011

    Posted 08 Feb 2012 Link to this post

    I'm getting weird COM exceptions. I can't seem to be able to click on (or execute Open command) on a drop down first time (then second time it opens and clicks on the right choice, but then it gives me COM exceptions... an example (I've also gotten System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL as well):

    Failure Information: 
    ~~~~~~~~~~~~~~~
    ExecuteCommand failed!
    InError set by the client. Client Error:
    System.Runtime.InteropServices.COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
       at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
       at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
    BrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{"Method":null,"Property":null,"Reference":{"ObjectName":"$root","Path":"\/page:-1:52176326","Properties":[]},"Reference2":null,"Type":4,"Value":"GkMk3aAbn2KaxwITLjrzy0pr\/Kk="}',ClientId:'Client_589f167e-dce9-452a-94fb-601859634ba0',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
       at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
       at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
    InnerException: none.


    InnerException:
    ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
    InError set by the client. Client Error:
    System.Runtime.InteropServices.COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
       at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
       at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
    BrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{"Method":null,"Property":null,"Reference":{"ObjectName":"$root","Path":"\/page:-1:52176326","Properties":[]},"Reference2":null,"Type":4,"Value":"GkMk3aAbn2KaxwITLjrzy0pr\/Kk="}',ClientId:'Client_589f167e-dce9-452a-94fb-601859634ba0',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
       at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
       at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
    InnerException: none.


       at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
       at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)
       at ArtOfTest.WebAii.Silverlight.SilverlightProxy.GetVisualTree(IAutomationPeer root, String hash)
       at ArtOfTest.WebAii.Silverlight.VisualTree.Refresh()
       at ArtOfTest.WebAii.Silverlight.FrameworkElement.Refresh()
       at Telerik.WebAii.Controls.Xaml.RadComboBox.WaitDropDownAnimation(Int32 millis)
       at Telerik.WebAii.Controls.Xaml.RadComboBox.SelectItem(String itemText, Boolean openDropDown)
       at Telerik.WebAii.Design.Translators.Xaml.Input.ComboBox.ActionDescriptors.SelectItemNew.ComboBoxSelectAction.Execute(IApplication appHost)
       at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 09 Feb 2012 Link to this post

    Hello Will,

    Is this an HTML or Silverlight ComboBox? Is it a generic control or a RadControl?

    We'd like to see the error first-hand to diagnose it. Please see here for what information to provide. If you can grant us access to your app but feel that information is sensitive, you can submit a support ticket which is confidential, unlike this forum.

    If you can replicate the issue against a Telerik demo site (HTML or Silverlight), let's continue the discussion here. Please provide reproduction steps in that case.

    Regards,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Will
    Will avatar
    1 posts
    Member since:
    Jul 2011

    Posted 09 Feb 2012 Link to this post

    Silverlight RadComboBox.

    Good news, I was able to reproduce the issue with a demo project, I will be able to submit that with support ticket (corporate policy forbids us to submit any real code, only a demonstration, even for confidential support tickets).

    Basically, have the SelectionChanged event wired to:

    using System.Windows.Browser; // for HtmlPage.Document.Submit();
     
    private void radComboBox1_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)
    {
        HtmlPage.Document.Submit();
    }

    And then program Test Studio to:

    Navigate to the Silverlight page.
    Open action on drop down.
    Select item 1.
    Wait a few msec (for the page to refresh)
    Open action on drop down.
    Select item 2.
    Wait a few msec
    Open action on drop down
    Select item 3

    Or something similar to that.
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 10 Feb 2012 Link to this post

    Hello Will,

    That sounds good. Please attach the demo project (within a .zip file) to a new support ticket and reference this forum thread. I'll take ownership of the new ticket once it comes in.

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top