Error when trying to deserialize large JS RAD object using Invoke JS Browser function.
In order to reproduce execute the test in the attached project.
The exception thrown is:
Error Message:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException : ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [JSON.stringify(eval(\"$(\\\'#ctl00_MainHeaderControl_TelerikLogoImage\\\')\"));] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object expected
at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON, IHTMLDocument2 doc)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunctionReturnJSON',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'$(\\\'#ctl00_MainHeaderControl_TelerikLogoImage\\\')',ClientId:'Client_d5694d3f-84a9-4f4c-94be-3201f1e1be48',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [JSON.stringify(eval(\"$(\\\'#ctl00_MainHeaderControl_TelerikLogoImage\\\')\"));] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object expected
at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON, IHTMLDocument2 doc)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
Exception Message:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException : ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [JSON.stringify(eval(\"$(\\\'#ctl00_MainHeaderControl_TelerikLogoImage\\\')\"));] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object expected
at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON, IHTMLDocument2 doc)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunctionReturnJSON',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'$(\\\'#ctl00_MainHeaderControl_TelerikLogoImage\\\')',ClientId:'Client_d5694d3f-84a9-4f4c-94be-3201f1e1be48',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [JSON.stringify(eval(\"$(\\\'#ctl00_MainHeaderControl_TelerikLogoImage\\\')\"));] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object expected
at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON, IHTMLDocument2 doc)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
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.Actions.InvokeScript[T](String script)
at TelerikSample.Test.RunTest() in C:\Users\ittodorov\Desktop\work files\18.03.2016\TelerikSample-2\TelerikSample\TelerikSample\Class1.cs:line 37
Output:
DialogPlayback: Manager.SetupDialogMonitoring() : Beginning monitoring for dialogs from the set {}.