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.
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.