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

Issue selecting from RadComboBox

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 13 Dec 2011, 12:14 AM
I am trying to select an item from, what I think, is is a generic RadComboBox. I can use the Open method but an item cannot be selected.

The error I get when trying to select by Index, by Text or by Value is:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException was unhandled by user code
  Message=ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [$find(\'ctl00_ContentPlaceHolder1_EditEvidence1List_OwnerUsers_UserDropDownList1_rcbUsers\').get_items().getItem(\'0\').get_text()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error] 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'$find(\'ctl00_ContentPlaceHolder1_EditEvidence1List_OwnerUsers_UserDropDownList1_rcbUsers\').get_items().getItem(\'0\').get_text()',ClientId:'Client_251e965a-2e85-4cb8-af94-70eba087517c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [$find(\'ctl00_ContentPlaceHolder1_EditEvidence1List_OwnerUsers_UserDropDownList1_rcbUsers\').get_items().getItem(\'0\').get_text()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error] 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.


  Source=ArtOfTest.WebAii
  StackTrace:
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
       at ArtOfTest.WebAii.Core.Actions.InvokeScript(String script)
       at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.InvokeScript(String script)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.GetValue[T](String propertyName, T defaultValue)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.GetValue[T](String propertyName)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.CallMethod[T](String methodCall)
       at Telerik.WebAii.Controls.Html.RadComboBoxItem.get_Text()
       at vsuiteautomation.TC314CreatenewContentProjects.<TC314__Create_new_Content__Projects_CodedStep2>b__0(RadComboBoxItem x) in C:\Users\David Adams\Documents\Test Studio Projects\vsuiteautomation\prod\regression\TC314 - Create new Content - Projects.tstest.cs:line 92
       at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
       at vsuiteautomation.TC314CreatenewContentProjects.TC314__Create_new_Content__Projects_CodedStep2() in C:\Users\David Adams\Documents\Test Studio Projects\vsuiteautomation\prod\regression\TC314 - Create new Content - Projects.tstest.cs:line 92
  InnerException: 

The id of the dropdown is: ctl00_ContentPlaceHolder1_EditEvidence1List_OwnerUsers_UserDropDownList1_rcbUsers.

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 15 Dec 2011, 02:33 PM
Hello David,
try adding a fixed delay of a few seconds between the Open step and Select step. Does the issue persist?

That being said, we would like to reproduce this issue locally. Please check out whether you can reproduce this on our demo controls here:
http://demos.telerik.com/aspnet-ajax/combobox/examples/overview/defaultcs.aspx

If not, than could you put together a sample that (or grant us access to the original app) so that we may reproduce this locally.

The other alternative is to send us a Fiddler trace as seen here:
http://tv.telerik.com/watch/automated-testing-tools/test-studio-creating-fiddler-trace

If you feel any of the info you would like to send us is too sensitive for a public forum, please go ahead and open a Support Ticket and attach it there. The support system (available only to paying customers such as yourself) is 100% confidential.

Kind regards,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or