selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Exception on IE11 when move mouse on canvas with protractor

Open tamvo94 opened this issue 9 years ago • 0 comments

I have a code to draw on canvas on IE11:

        public drawAnnotation(points) {
        let canvas = element(by.id(`canvas`).getWebElement();
        browser.actions()
          .mouseMove(canvas, points[0])
          .mouseDown()
          .mouseMove(canvas, points[1])
          .mouseUp()
          .perform();
      };

And config:

      {
        'browserName': 'internet explorer',
        'platform': 'ANY',
        'version': 11,
        'nativeEvents': false,
        'unexpectedAlertBehaviour': 'accept',
        'ignoreProtectedModeSettings': true,
        'enablePersistentHover': true,
        'disable-popup-blocking': true
      },

I tested on Chrome and Edge it run ok, but IE11 it also draw ok but have expection occurred:

        - Failed:  (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 94 milliseconds
    Build info: version: '3.1.0', revision: '86a5d70', time: '2017-02-16 07:57:44 -0800'
    System info: host: 'os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_66'
    Driver info: org.openqa.selenium.ie.InternetExplorerDriver
    Capabilities [{browserAttachTimeout=0, ie.enableFullPageScreenshot=true, enablePersistentHover=false, ie.forceCreateProcessApi=false, ie.forceShellWindowsApi=false, pageLoadStrategy=normal, ignoreZoomSetting=false, ie.fileUploadDialogTimeout=3000, version=11, platform=WINDOWS, nativeEvents=false, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=http://localhost:18534/, javascriptEnabled=true, ignoreProtectedModeSettings=true, enableElementCacheCleanup=true, unexpectedAlertBehaviour=accept}]
    Session ID: 8266a897-5284-41dc-bbdf-73dc565fa053
    *** Element info: {Using=css selector, value=*[id="canvas"]}

How can I fix it?

tamvo94 avatar Feb 22 '17 03:02 tamvo94