Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

Fails with IE11 #2988

Open tjahelka opened 9 years ago

tjahelka commented 9 years ago

Our application supports 3 browser, current Chrome, FF 24 and IE 11. I've tried allowing WCT to default to the browsers installed (same as those listed), and I've tried specifying the browsers in the wct.conf.json file using

"plugins": { "local": { "browsers": [ { "browserName": "chrome", "platform": "Windows 7", "version": "45" }, { "browserName": "firefox", "platform": "Windows 7", "version": "24" }, { "browserName": "ie", "platform": "Windows 7", "version" : "11" } ] } }

Error is the same both ways:

Tests failed: {"state":"unhandled error","sessionId":null,"hCode":321845267,"value":{"additionalInformation":"\nDriver info: driver.version: unknown","localizedMessage":"The best matching driver provider org.openqa.selenium.edge.EdgeDriver can't create a new driver instance for Capabilities [{browserName=ie, javascriptEnabled=true, version=11.0.9600.18015, platform=ANY}]\nBuild info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'\nSystem info: host: '', ip: '****_', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'\nDriver info: driver.version: unknown","systemInformation":"System info: host: '_', ip: '***_', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'","supportUrl":null,"cause":null,"stackTrace":[{"fileName":"DefaultDriverFactory.java","nativeMethod":false,"methodName":"newInstance","className":"org.openqa.selenium.remote.server.DefaultDriverFactory","hCode":-1365021414,"lineNumber":62,"class":"java.lang.StackTraceElement"},{"fileName":"DefaultSession.java","nativeMethod":false,"methodName":"call","className":"org.openqa.selenium.remote.server.DefaultSession$BrowserCreator","hCode":2056168471,"lineNumber":222,"class":"java.lang.StackTraceElement"},{"fileName":"DefaultSession.java","nativeMethod":false,"methodName":"call","className":"org.openqa.selenium.remote.server.DefaultSession$BrowserCreator","hCode":2056168250,"lineNumber":1,"class":"java.lang.StackTraceElement"},{"fileName":null,"nativeMethod":false,"methodName":"run","className":"java.util.concurrent.FutureTask","hCode":424519275,"lineNumber":-1,"class":"java.lang.StackTraceElement"},{"fileName":"DefaultSession.java","nativeMethod":false,"methodName":"run","className":"org.openqa.selenium.remote.server.DefaultSession$1","hCode":-255143467,"lineNumber":176,"class":"java.lang.StackTraceElement"},{"fileName":null,"nativeMethod":false,"methodName":"runWorker","className":"java.util.concurrent.ThreadPoolExecutor","hCode":-1208971944,"lineNumber":-1,"class":"java.lang.StackTraceElement"},{"fileName":null,"nativeMethod":false,"methodName":"run","className":"java.util.concurrent.ThreadPoolExecutor$Worker","hCode":-166011880,"lineNumber":-1,"class":"java.lang.StackTraceElement"},{"fileName":null,"nativeMethod":false,"methodName":"run","className":"java.lang.Thread","hCode":1432591020,"lineNumber":-1,"class":"java.lang.StackTraceElement"}],"suppressed":[],"message":"The best matching driver provider org.openqa.selenium.edge.EdgeDriver can't create a new driver instance for Capabilities [{browserName=ie, javascriptEnabled=true, version=11.0.9600.18015, platform=ANY}]\nBuild info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'\nSystem info: host: _', ip: '**', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'\nDriver info: driver.version: unknown","hCode":1017511255,"class":"org.openqa.selenium.WebDriverException","buildInformation":{"buildRevision":"411b314","buildTime":"2015-07-30 03:03:16","releaseLabel":"2.47.1","hCode":1627091084,"class":"org.openqa.selenium.internal.BuildInfo"},"screen":null},"class":"org.openqa.selenium.remote.Response","status":13}

I've found several postings related to a similar error where the resolution was setting the desiredCapabilities, see https://github.com/SeleniumHQ/selenium/issues/906. But I don't know how to accomplish this in WCT.

MeTaNoV commented 8 years ago

same here...

{
  "state": "unhandled error",
  "sessionId": null,
  "hCode": 823720086,
  "value": {
    "additionalInformation": "\nDriver info: driver.version: unknown",
    "localizedMessage": "The best matching driver provider org.openqa.selenium.ie.InternetExplorerDriver can't create a new driver instance for Capabilities [{browserName=ie, javascriptEnabled=true, version=11.0.9600.17840, platform=ANY}]\nBuild info: version: '2.47.1', revision: '411b314', time: '2015-07-3003:03:16'\nSystem info: host: 'NouNours', ip: '192.168.1.13', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_66'\nDriver info: driver.version: unknown",
    "systemInformation": "System info: host: 'NouNours', ip: '192.168.1.13', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_66'",
    "supportUrl": null,
    "cause": null,
    "stackTrace": [
      {
        "fileName": "DefaultDriverFactory.java",
        "nativeMethod": false,
        "methodName": "newInstance",
        "className": "org.openqa.selenium.remote.server.DefaultDriverFactory",
        "hCode": -1365021414,
        "lineNumber": 62,
        "class": "java.lang.StackTraceElement"
      },
      {
        "fileName": "DefaultSession.java",
        "nativeMethod": false,
        "methodName": "call",
        "className": "org.openqa.selenium.remote.server.DefaultSession$BrowserCreator",
        "hCode": 2056168471,
        "lineNumber": 222,
        "class": "java.lang.StackTraceElement"
      },
      {
        "fileName": "DefaultSession.java",
        "nativeMethod": false,
        "methodName": "call",
        "className": "org.openqa.selenium.remote.server.DefaultSession$BrowserCreator",
        "hCode": 2056168250,
        "lineNumber": 1,
        "class": "java.lang.StackTraceElement"
      },
      {
        "fileName": null,
        "nativeMethod": false,
        "methodName": "run",
        "className": "java.util.concurrent.FutureTask",
        "hCode": 424519275,
        "lineNumber": -1,
        "class": "java.lang.StackTraceElement"
      },
      {
        "fileName": "DefaultSession.java",
        "nativeMethod": false,
        "methodName": "run",
        "className": "org.openqa.selenium.remote.server.DefaultSession$1",
        "hCode": -255143467,
        "lineNumber": 176,
        "class": "java.lang.StackTraceElement"
      },
      {
        "fileName": null,
        "nativeMethod": false,
        "methodName": "runWorker",
        "className": "java.util.concurrent.ThreadPoolExecutor",
        "hCode": -1208971944,
        "lineNumber": -1,
        "class": "java.lang.StackTraceElement"
      },
      {
        "fileName": null,
        "nativeMethod": false,
        "methodName": "run",
        "className": "java.util.concurrent.ThreadPoolExecutor$Worker",
        "hCode": -166011880,
        "lineNumber": -1,
        "class": "java.lang.StackTraceElement"
      },
      {
        "fileName": null,
        "nativeMethod": false,
        "methodName": "run",
        "className": "java.lang.Thread",
        "hCode": 1432591020,
        "lineNumber": -1,
        "class": "java.lang.StackTraceElement"
      }
    ],
    "suppressed": [],
    "message": "The best matching driver provider org.openqa.selenium.ie.InternetExplorerDriver can't create a new driver instance for Capabilities [{browserName=ie, javascriptEnabled=true, version=11.0.9600.17840, platform=ANY}]\nBuild info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'\nSystem info: host: 'NouNours', ip: '192.168.1.13', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_66'\nDriver info: driver.version: unknown",
    "hCode": 666585738,
    "class": "org.openqa.selenium.WebDriverException",
    "buildInformation": {
      "buildRevision": "411b314",
      "buildTime": "2015-07-30 03:03:16",
      "releaseLabel": "2.47.1",
      "hCode": 2069304123,
      "class": "org.openqa.selenium.internal.BuildInfo"
    },
    "screen": null
  },
  "class": "org.openqa.selenium.remote.Response",
  "status": 13
}
ghost commented 8 years ago

same for me :+1:

mazswojejzony commented 8 years ago

Does this help? https://github.com/Polymer/wct-local/issues/13

In a nut-shell: go to web-component-tester\node_modules\wct-local\lib\browsers.js and update the following function:

function internetExplorer(browser) {
  return {
    'browserName': 'ie',
    'version':     browser.version,
  };
}

with:

function internetExplorer(browser) {
  return {
    'browserName': 'internet explorer', // recent Selenium version replaced "IE" with "Internet Explorer"
    'version':     browser.version,
  };
}

If it helps please comment on https://github.com/Polymer/wct-local/issues/13

ghost commented 8 years ago

Hi @mazswojejzony This actually worked! Thanks you very much :) Going to comment on the other issue as well.

rycastaneda commented 8 years ago

How about for those using windows 10 with Edge internet explorer? I am getting a similar error.

ghost commented 8 years ago

@rycastaneda I'm using Windows 10 with edge... Worked like a charm :)

primalbet commented 8 years ago

@mazswojejzony Tried it on Windows 7, didn't work. The tests passed for chrome and firefox, but it can't run because it fails for IE v11, throwing the exact same error as above. Anyone have any other solutions?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.