Failed to trigger mouseover and mouseout events in IE11 in WebdriverIO

Injecting a JavaScript fragment to trigger the mouseover and mouseout events. Works well with Chrome, Firefox, and Safari (both locally and remotely).

In IE11, I can verify that it works in the console. But trying to automate it, an error occurs:

JavaScript error (WARNING: The server did not provide any stacktrace information) 
Command duration or timeout: 64 milliseconds Build info: version: '2.53.0', revision: '35ae25b', 
time: '2016-03-15 17:00:58' System info: host: '185-129-68-90', ip: '185.129.68.90', os.name: 'windows', 
os.arch: 'x86', os.version: '10.0', 
java.version: '1.8.0_121' Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities 
[{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, pageLoadStrategy=normal,
 ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=11, platform=WINDOWS, 
nativeEvents=true, ie.ensureCleanSession=true, elementScrollBehavior=0, ie.browserCommandLineSwitches=, 
requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=about:blank, takesScreenshot=true, 
javascriptEnabled=true, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true, cssSelectorsEnabled=true, 
unexpectedAlertBehaviour=dismiss}] 

Usage: WebdriverIO - version 4.6.2

Code snippet :

 hoverOnChart: function(chartID, index) {
        browser.execute((chartID, index) => {
            $(`${chartID} g.amcharts-graph-column:nth-child(${index})`).trigger("mouseover");
        }, chartID, index);
    }

Note. In the above scenario, I am trying to hover over a chart created using the amchartsJavaScript library .

+4
source share

Source: https://habr.com/ru/post/1680641/


All Articles