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

Javascript error from selecting a dropdown item

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Madhu
Top achievements
Rank 1
Madhu asked on 02 Oct 2014, 05:24 PM
The item selected in this drop down affects the next drop down. The change triggers a Javascript call. I get this error when that happens. 

ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [$(document.getElementsByTagName(\'select\')[3]).change();] failed! Please make sure 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:'$(document.getElementsByTagName(\'select\')[3]).change();',ClientId:'Client_f849a365-c9ab-4ece-aaf7-36083835f3a7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'5',InError:'True',Response:'System.InvalidOperationException: Javascript call [$(document.getElementsByTagName(\'select\')[3]).change();] failed! Please make sure 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.

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 07 Oct 2014, 03:05 PM
Hi Madhu,

I need a way to reproduce this problem on my local machine so that I can investigate the root cause. Can you send me a test I can run on my machine to see the problem happening?

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Madhu
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or