Javascript error from selecting a dropdown item

2 posts, 0 answers
  1. Madhu
    Madhu avatar
    1 posts
    Member since:
    Jan 2013

    Posted 02 Oct 2014 Link to this post

    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.
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 07 Oct 2014 Link to this post

    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!
Back to Top