This question is locked. New answers and comments are not allowed.
| var ed2 = Find.ByCustom<RadEditor>(a => a.ID.EndsWith("MqTelerikEditor")); |
| Assert.IsNotNull(ed2, "Did not find the editor"); |
| const string html = "More <br /> Stuff"; |
| ed2.Html = html; |
This code used to run successfully. Now it fails on the last line with this error message.
| System.Threading.ThreadAbortException: Thread was being aborted. |
| at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListener() |
| at System.Threading.ThreadHelper.ThreadStart_Context(Object state) |
| at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) |
| at System.Threading.ThreadHelper.ThreadStart() |
| ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed! |
| InError set by the client. Client Error: |
| System.InvalidOperationException: Javascript call [$find(\'ctl00_cContent_ctl00_MqTelerikEditor\').set_html(\'More <br /> Stuff\')] 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_cContent_ctl00_MqTelerikEditor\').set_html(\'More <br /> Stuff\')',ClientId:'Client_ea100b96-0136-4c7d-96a7-667c18ac4a4f',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [$find(\'ctl00_cContent_ctl00_MqTelerikEditor\').set_html(\'More <br /> Stuff\')] 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. |
| 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.RadEditor.set_Html(String value) |
| at Marqui.Tests.wxWeb.ArtOfTest.TestArtOfTest.SetTextInEditorAndFetch() in TestArtOfTest.cs: line 88 |
Any ideas?