Problems with Select InvokeSelectionChanged

3 posts, 0 answers
  1. Erick
    Erick avatar
    2 posts
    Member since:
    May 2013

    Posted 10 Jun 2013 Link to this post

    Is anyone aware with any issues with Selecting a dropdown value?

    I got the error below when testing with the website: http://www.echoecho.com/htmlforms11.htm

    ================================================================
    Overall Result: Fail
    ------------------------------------------------------------
    '11/06/2013 11:33:04 AM' - Using .Net Runtime version: '4.0.30319.17929' for test execution. Build version is '2012.2.1420.0'.
    '11/06/2013 11:33:04 AM' - Starting execution....
    ------------------------------------------------------------
    ------------------------------------------------------------
    '11/06/2013 11:33:08 AM' - Using 'InternetExplorer' version '9.0' as default browser.
    '11/06/2013 11:33:14 AM' - 'Pass' : 1. Navigate to : 'http://www.echoecho.com/htmlforms11.htm'
    '11/06/2013 11:33:15 AM' - 'Fail' : 2. Select 'ByValue' option 'Milk' on 'DropdownmenuSelect'
    ------------------------------------------------------------
    Failure Information:
    ~~~~~~~~~~~~~~~
    ExecuteCommand failed!
    InError set by the client. Client Error:
    System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] 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:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()',ClientId:'Client_d3d8231a-b3ab-438c-aefd-ea068639b46e',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] 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.

    InnerException:
    ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
    InError set by the client. Client Error:
    System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] 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:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()',ClientId:'Client_d3d8231a-b3ab-438c-aefd-ea068639b46e',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] 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.

       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.HtmlSelect.InvokeOnChange()
       at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.SelectDropDownActionDescriptor.Execute(Browser browser)
       at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
    ------------------------------------------------------------
    '11/06/2013 11:33:15 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
    ------------------------------------------------------------
    '11/06/2013 11:33:15 AM' - Overall Result: Fail
    '11/06/2013 11:33:15 AM' - Duration: [0 min: 6 sec: 522 msec]
    ------------------------------------------------------------
    '11/06/2013 11:33:16 AM' - Test completed!

    ================================================================

    It isn't the website I'm testing but it has a dropdown that demonstrates the issue I'm having. The issue seems to disappear if I change InvokeSelectionChanged to False but I'm sure you can see how that could be a problem with some tests.

    Has anyone else had a similar issue?

  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 11 Jun 2013 Link to this post

    Hello Erick,

    I am sorry to hear you're running into this problem. The issue is already fixed for IE9 and the fix is included in our latest internal build 2012.2.1527. You can download it from your Telerik.com account here: Public URL. I have also recorded this short video to demonstrate how it works with the latest build.

    Unfortunately the problem still occurs in older versions of Internet Explorer(IE8 and older). The bug is logged here: Public URL. We expect a final fix for this to be included in our next official 2013 R1 release.

    Regards,
    Plamen
    Telerik
    Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
    Reserve your seat today!
  3. Erick
    Erick avatar
    2 posts
    Member since:
    May 2013

    Posted 11 Jun 2013 Link to this post

    It works OK with 2012.2.1527 (& IE9).

    Thanks Plamen.
Back to Top