{"action":"created","issue":{"url":"https://api.github.com/repos/Shippable/support/issues/2013","labels_url":"https://api.github.com/repos/Shippable/support/issues/2013/labels{/name}","comments_url":"https://api.github.com/repos/Shippable/support/issues/2013/comments","events_url":"https://api.github.com/repos/Shippable/support/issues/2013/events","html_url":"https://github.com/Shippable/support/issues/2013","id":115929038,"number":2013,"title":"Chrome selenium Protractor e2e tests driver version issue","user":{"login":"lukemadera","id":1377076,"avatar_url":"https://avatars.githubusercontent.com/u/1377076?v=3","gravatar_id":"","url":"https://api.github.com/users/lukemadera","html_url":"https://github.com/lukemadera","followers_url":"https://api.github.com/users/lukemadera/followers","following_url":"https://api.github.com/users/lukemadera/following{/other_user}","gists_url":"https://api.github.com/users/lukemadera/gists{/gist_id}","starred_url":"https://api.github.com/users/lukemadera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukemadera/subscriptions","organizations_url":"https://api.github.com/users/lukemadera/orgs","repos_url":"https://api.github.com/users/lukemadera/repos","events_url":"https://api.github.com/users/lukemadera/events{/privacy}","received_events_url":"https://api.github.com/users/lukemadera/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shippable/support/labels/question","name":"question","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-09T17:46:27Z","updated_at":"2015-11-11T23:13:00Z","closed_at":null,"body":"I've been through the following threads and have things working with Firefox (though tests do not seem to pass - sporadic results, as has been my experience with Firefox, even locally, so we need to use Chrome, which is the only one that reliably passes for me).\r\n\r\nhttps://github.com/Shippable/support/issues/609\r\nhttps://github.com/Shippable/support/issues/258\r\nhttps://github.com/Shippable/support/issues/253\r\nhttps://github.com/Shippable/support/issues/285\r\nhttps://github.com/Shippable/support/issues/732\r\nhttps://github.com/Shippable/support/issues/818\r\n\r\nLog output:\r\n```\r\n>> 17:36:14.532 INFO - Launching a standalone Selenium Server\r\n>> Setting system property webdriver.chrome.driver to node_modules/protractor/selenium/chromedriver\r\n>> 17:36:14.594 INFO - Java: Oracle Corporation 24.72-b04\r\n>> 17:36:14.594 INFO - OS: Linux 3.13.0-57-generic amd64\r\n>> 17:36:14.613 INFO - v2.47.1, with Core v2.47.1. Built from revision 411b314\r\n>> 17:36:14.737 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:\r\n>> registration capabilities Capabilities [{platform=WINDOWS, ensureCleanSession=true, browserName=internet explorer, version=}] does not match the current platform LINUX\r\n>> 17:36:14.738 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:\r\n>> registration capabilities Capabilities [{platform=WINDOWS, browserName=MicrosoftEdge, version=}] does not match the current platform LINUX\r\n>> 17:36:14.738 INFO - Driver class not found: com.opera.core.systems.OperaDriver\r\n>> 17:36:14.738 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered\r\n>> 17:36:14.854 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub\r\n>> 17:36:14.854 INFO - Selenium Server is up and running\r\nserver.js opening new database connection\r\n[success] connected to db at localhost:27017/test_temp\r\n>> Done waiting after 1501ms\r\n\r\nRunning \"shell:protractor\" (shell) task\r\nUsing the selenium server at http://localhost:4444/wd/hub\r\n[launcher] Running 1 instances of WebDriver\r\n>> 17:36:16.764 INFO - Executing: [new session: Capabilities [{count=1, browserName=chrome}]])\r\n>> 17:36:16.792 INFO - Creating a new session for Capabilities [{count=1, browserName=chrome}]\r\n>> Starting ChromeDriver 2.19.346067 (6abd8652f8bc7a1d825962003ac88ec6a37a82f1) on port 12845\r\n>> Only local connections are allowed.\r\nRealtime inited\r\nCronjoblocal inited\r\nExpress server listening at http://localhost:3005/ in development mode\r\n>> 17:36:19.642 WARN - Exception thrown\r\n>> java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException\r\n>> Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'\r\n>> System info: host: '1ac8301f1a2e', ip: '172.17.3.36', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-57-generic', java.version: '1.7.0_72'\r\n>> Driver info: driver.version: unknown\r\n>> \tat java.util.concurrent.FutureTask.report(FutureTask.java:122)\r\n>> \tat java.util.concurrent.FutureTask.get(FutureTask.java:188)\r\n>> \tat org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:183)\r\n>> \tat org.openqa.selenium.remote.server.DefaultSession.(DefaultSession.java:119)\r\n>> \tat org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:95)\r\n>> \tat org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:125)\r\n>> \tat org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:58)\r\n>> \tat org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:1)\r\n>> \tat org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:111)\r\n>> \tat org.openqa.selenium.remote.server.JsonHttpCommandHandler.handleRequest(JsonHttpCommandHandler.java:175)\r\n>> \tat org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:202)\r\n>> \tat org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:164)\r\n>> \tat javax.servlet.http.HttpServlet.service(HttpServlet.java:727)\r\n>> \tat org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:130)\r\n>> \tat javax.servlet.http.HttpServlet.service(HttpServlet.java:820)\r\n>> \tat org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)\r\n>> \tat org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:680)\r\n>> \tat org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:571)\r\n>> \tat org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1526)\r\n>> \tat org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1479)\r\n>> \tat org.openqa.jetty.http.HttpServer.service(HttpServer.java:920)\r\n>> \tat org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)\r\n>> \tat org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)\r\n>> \tat org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)\r\n>> \tat org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)\r\n>> \tat org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:358)\r\n>> \tat org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:537)\r\n>> Caused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException\r\n>> Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'\r\n>> System info: host: '1ac8301f1a2e', ip: '172.17.3.36', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-57-generic', java.version: '1.7.0_72'\r\n>> Driver info: driver.version: unknown\r\n>> \tat org.openqa.selenium.remote.server.DefaultDriverProvider.callConstructor(DefaultDriverProvider.java:113)\r\n>> \tat org.openqa.selenium.remote.server.DefaultDriverProvider.newInstance(DefaultDriverProvider.java:97)\r\n>> \tat org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)\r\n>> \tat org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)\r\n>> \tat org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)\r\n>> \tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n>> \tat org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)\r\n>> \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n>> \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n>> \tat java.lang.Thread.run(Thread.java:745)\r\n>> Caused by: java.lang.reflect.InvocationTargetException\r\n>> \tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n>> \tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)\r\n>> \tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n>> \tat java.lang.reflect.Constructor.newInstance(Constructor.java:526)\r\n>> \tat org.openqa.selenium.remote.server.DefaultDriverProvider.callConstructor(DefaultDriverProvider.java:103)\r\n>> \t... 9 more\r\n>> Caused by: org.openqa.selenium.WebDriverException: unknown error: Chrome version must be >= 43.0.2357.0\r\n>>   (Driver info: chromedriver=2.19.346067 (6abd8652f8bc7a1d825962003ac88ec6a37a82f1),platform=Linux 3.13.0-57-generic x86_64) (WARNING: The server did not provide any stacktrace information)\r\n>> Command duration or timeout: 1.74 seconds\r\n>> Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'\r\n>> System info: host: '1ac8301f1a2e', ip: '172.17.3.36', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-57-generic', java.version: '1.7.0_72'\r\n>> Driver info: org.openqa.selenium.chrome.ChromeDriver\r\n>> \tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n>> \tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)\r\n>> \tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n>> \tat java.lang.reflect.Constructor.newInstance(Constructor.java:526)\r\n>> \tat org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)\r\n>> \tat org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)\r\n>> \tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595)\r\n>> \tat org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)\r\n>> \tat org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:128)\r\n>> \tat org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:141)\r\n>> \tat org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:170)\r\n>> \tat org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:138)\r\n>> \t... 14 more\r\n>> 17:36:19.663 WARN - Exception: unknown error: Chrome version must be >= 43.0.2357.0\r\n>>   (Driver info: chromedriver=2.19.346067 (6abd8652f8bc7a1d825962003ac88ec6a37a82f1),platform=Linux 3.13.0-57-generic x86_64) (WARNING: The server did not provide any stacktrace information)\r\n>> Command duration or timeout: 1.74 seconds\r\n>> Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'\r\n>> System info: host: '1ac8301f1a2e', ip: '172.17.3.36', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-57-generic', java.version: '1.7.0_72'\r\n>> Driver info: org.openqa.selenium.chrome.ChromeDriver\r\n\r\n/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:108\r\n  var template = new Error(this.message);\r\n                 ^\r\nUnknownError: unknown error: Chrome version must be >= 43.0.2357.0\r\n  (Driver info: chromedriver=2.19.346067 (6abd8652f8bc7a1d825962003ac88ec6a37a82f1),platform=Linux 3.13.0-57-generic x86_64) (WARNING: The server did not provide any stacktrace information)\r\nCommand duration or timeout: 1.74 seconds\r\nBuild info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'\r\nSystem info: host: '1ac8301f1a2e', ip: '172.17.3.36', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-57-generic', java.version: '1.7.0_72'\r\nDriver info: org.openqa.selenium.chrome.ChromeDriver\r\n    at new bot.Error (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:108:18)\r\n    at Object.bot.response.checkResponse (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/response.js:109:9)\r\n    at /home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:160:24\r\n    at [object Object].promise.ControlFlow.runInFrame_ (eval at  (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1124:19), :1857:20)\r\n    at [object Object].goog.defineClass.notify (eval at  (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1124:19), :2448:25)\r\n    at [object Object].promise.Promise.notify_ (eval at  (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1124:19), :564:12)\r\n    at Array.forEach (native)\r\n    at [object Object].promise.Promise.notifyAll_ (eval at  (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1124:19), :553:15)\r\n    at [object Object].goog.async.run.processWorkQueue [as onTimeout] (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/run.js:130:15)\r\n    at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)\r\nFrom: Task: WebDriver.createSession()\r\n    at Function.webdriver.WebDriver.acquireSession (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:157:22)\r\n    at Function.webdriver.WebDriver.createSession (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:131:30)\r\n    at [object Object].Builder.build (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/selenium-webdriver/builder.js:445:22)\r\n    at [object Object].DriverProvider.getNewDriver (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/lib/driverProviders/driverProvider.js:38:7)\r\n    at [object Object].Runner.createBrowser (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/lib/runner.js:180:37)\r\n    at driverprovider_.setupEnv.then.then.then.frameworkPath (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/lib/runner.js:256:21)\r\n    at _fulfilled (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/q/q.js:797:54)\r\n    at self.promiseDispatch.done (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/q/q.js:826:30)\r\n    at Promise.promise.promiseDispatch (/home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/q/q.js:759:13)\r\n    at /home/shippable/workspace/src/github.com/DropPrice/dropprice1/node_modules/protractor/node_modules/q/q.js:525:49\r\n[launcher] Process exited with error code 1\r\nWarning: Done, with errors.\u0007 Use --force to continue.\r\n\r\nAborted due to warnings.\r\n```\r\n\r\nAnd shippable config:\r\n```\r\n# language setting\r\nlanguage: node_js\r\n\r\nnode_js: \"0.10.40\"\r\n\r\n# for selenium e2e\r\n#addons:\r\n#  firefox: \"28.0\"\r\n\r\nservices:\r\n  - mongodb\r\n  - selenium\r\n\r\ncache: true\r\n\r\nenv:\r\n  matrix:\r\n    - PARALLEL_BUILD=deploy\r\n    #- PARALLEL_BUILD=teste2e\r\n    - PARALLEL_BUILD=testBackend\r\n    - PARALLEL_BUILD=testFrontend\r\n\r\nbefore_install:\r\n  - npm cache clean\r\n  # for selenium chrome driver\r\n  - if [ \"$PARALLEL_BUILD\" == \"teste2e\" ]; then curl -o /tmp/chromedriver.zip -L http://chromedriver.storage.googleapis.com/2.19/chromedriver_linux64.zip &&\r\n    unzip /tmp/chromedriver.zip -d /home/shippable/bin &&\r\n    chmod +x /home/shippable/bin/chromedriver &&\r\n    echo '#!/bin/bash' | sudo tee /usr/bin/google-chrome &&\r\n    echo 'exec /usr/bin/chrome --no-sandbox --disable-gpu \\\"$@\\\"' | sudo tee -a /usr/bin/google-chrome &&\r\n    sudo chmod +x /usr/bin/google-chrome; fi\r\n\r\nbefore_script:\r\n  - chmod +x ./docker-dropprice-deploy.sh\r\n  - bower install\r\n  # for selenium e2e\r\n  - if [ \"$PARALLEL_BUILD\" == \"teste2e\" ]; then export DISPLAY=:99.0 &&\r\n    /etc/init.d/xvfb start; fi\r\n  # set environment - needed for e2e tests selenium path but breaks things otherwise (want to keep other tests local)\r\n  #- echo \"{\\\"environment\\\":\\\"dropprice_scaling\\\"}\" > config_environment.json\r\n  - echo \"{\\\"environment\\\":\\\"mac\\\"}\" > config_environment.json\r\n  - if [ \"$PARALLEL_BUILD\" == \"teste2e\" ]; then ./node_modules/protractor/bin/webdriver-manager update; fi\r\n  - grunt q\r\n\r\nscript:\r\n  - if [ \"$PARALLEL_BUILD\" == \"testFrontend\" ]; then grunt karma-cov; fi\r\n  - if [ \"$PARALLEL_BUILD\" == \"testBackend\" ]; then grunt node-test-server && grunt jasmine_node; fi\r\n  - if [ \"$PARALLEL_BUILD\" == \"teste2e\" ]; then grunt e2e; fi\r\n  - if [ \"$BRANCH\" == \"master\" -a \"$PARALLEL_BUILD\" == \"deploy\" ]; then cat docker-dropprice-deploy.sh | ssh root@162.243.153.52; fi\r\n  - if [ \"$BRANCH\" == \"dev2\" -a \"$PARALLEL_BUILD\" == \"deploy\" ]; then cat ci-dropprice-deploy.sh | ssh lmadera@107.170.216.136; fi\r\n  - if [ \"$BRANCH\" == \"prod\" -a \"$PARALLEL_BUILD\" == \"deploy\" ]; then cat ci-dropprice-deploy-prod.sh | ssh lmadera@dropprice.com; fi\r\n\r\nafter_script:\r\n  # for selenium e2e\r\n  - if [ \"$PARALLEL_BUILD\" == \"teste2e\" ]; then /etc/init.d/xvfb stop; fi\r\n\r\n# after_success:\r\n\r\n```\r\n\r\nHow can I get (Protractor) Selenium end to end tests running with Chrome?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Shippable/support/issues/comments/155939065","html_url":"https://github.com/Shippable/support/issues/2013#issuecomment-155939065","issue_url":"https://api.github.com/repos/Shippable/support/issues/2013","id":155939065,"user":{"login":"lukemadera","id":1377076,"avatar_url":"https://avatars.githubusercontent.com/u/1377076?v=3","gravatar_id":"","url":"https://api.github.com/users/lukemadera","html_url":"https://github.com/lukemadera","followers_url":"https://api.github.com/users/lukemadera/followers","following_url":"https://api.github.com/users/lukemadera/following{/other_user}","gists_url":"https://api.github.com/users/lukemadera/gists{/gist_id}","starred_url":"https://api.github.com/users/lukemadera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukemadera/subscriptions","organizations_url":"https://api.github.com/users/lukemadera/orgs","repos_url":"https://api.github.com/users/lukemadera/repos","events_url":"https://api.github.com/users/lukemadera/events{/privacy}","received_events_url":"https://api.github.com/users/lukemadera/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T23:13:00Z","updated_at":"2015-11-11T23:13:00Z","body":"No luck - I tried with selenium 2.45 and Chromedriver 2.15 and same error. Seems it's not finding / able to run chrome. Is there a \"chrome\" addon similar to Firefox that could be used? Since the tests are at least running with the Firefox addon."}}