Completed
Last Updated: 19 Dec 2013 16:24 by ADMIN
ADMIN
Plamen
Created on: 26 Apr 2013 11:44
Type: Bug Report
0
Javascript error when selecting a value from drop down list
This is only happening when running the test in Internet Explorer 8. It works as expected in IE9. 

The error is as follows:
ExecuteCommand failed!
 InError set by the client. Client Error:
 System.InvalidOperationException: Javascript call [$(document.getElementsByTagName(\'select\')[1]).change();] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object required 
   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\')[1]).change();',ClientId:'Client_786ac1c4-dcc9-4e0b-bbb2-26949f0b9d58',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'5',InError:'True',Response:'System.InvalidOperationException: Javascript call [$(document.getElementsByTagName(\'select\')[1]).change();] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object required 
   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.

To reproduce:
Sample test and a Fiddler trace are attached to the internal bug description.
1 comment
ADMIN
Pavel
Posted on: 18 Jun 2013 13:24
There is a javascript error thrown by the page when a value is selected from the dropdowns. This is a problem with the page itself when running on IE8.