This is a migrated thread and some comments may be shown as answers.

Getting weird COM exceptions with drop down/combo box

3 Answers 200 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 08 Feb 2012, 11:17 PM
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)

3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 09 Feb 2012, 04:56 PM
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
0
Will
Top achievements
Rank 1
answered on 10 Feb 2012, 03:14 AM
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.
0
Anthony
Telerik team
answered on 10 Feb 2012, 05:38 PM
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
Tags
General Discussions
Asked by
Will
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Will
Top achievements
Rank 1
Share this question
or