{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6179","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6179/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6179/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6179/events","html_url":"https://github.com/electron/electron/issues/6179","id":161661541,"number":6179,"title":"Error: ChromeDriver did not start within 5000ms","user":{"login":"FranAguiar","id":18166018,"avatar_url":"https://avatars.githubusercontent.com/u/18166018?v=3","gravatar_id":"","url":"https://api.github.com/users/FranAguiar","html_url":"https://github.com/FranAguiar","followers_url":"https://api.github.com/users/FranAguiar/followers","following_url":"https://api.github.com/users/FranAguiar/following{/other_user}","gists_url":"https://api.github.com/users/FranAguiar/gists{/gist_id}","starred_url":"https://api.github.com/users/FranAguiar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FranAguiar/subscriptions","organizations_url":"https://api.github.com/users/FranAguiar/orgs","repos_url":"https://api.github.com/users/FranAguiar/repos","events_url":"https://api.github.com/users/FranAguiar/events{/privacy}","received_events_url":"https://api.github.com/users/FranAguiar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/electron/electron/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-22T11:50:41Z","updated_at":"2016-06-22T20:12:23Z","closed_at":null,"body":"* electron-builder: \"^4.2.6\",\r\n* electron-packager: \"^7.0.3\",\r\n* electron-prebuilt: \"^1.2.2\",\r\n* spectron: \"^1.37.0\"\r\n\r\n* Operating system: linux\r\n\r\nHello I'm been fighting with this error for a few days, this is what I have and I don't know what I'm doing wrong.\r\n\r\n```\r\n\"use strict\";\r\nrequire(\"co-mocha\");\r\nvar Application = require('spectron').Application;\r\nvar assert = require('assert');\r\n\r\nconst webdriver = require('selenium-webdriver');\r\n\r\n//const driver = new webdriver.WebDriver;\r\nconst driver = new webdriver.Builder()\r\n  .usingServer('http://127.0.0.1:9515')\r\n  .withCapabilities({\r\n    chromeOptions: {\r\n      binary: \"./appPath/app\"\r\n    }\r\n  })\r\n  .forBrowser('electron')\r\n  .build();\r\n\r\ndescribe('Application launch', function () {\r\n  this.timeout(100000);\r\n  var app;\r\n  beforeEach(function () {\r\n    app = new Application({\r\n      path: \"./appPath/app\"\r\n    });\r\n    return app.start();\r\n  });\r\n\r\n  afterEach(function () {\r\n    if (app && app.isRunning()) {\r\n      return app.stop();\r\n    }\r\n  });\r\n\r\n  it('click a button', function* () {\r\n    yield driver.sleep(5000);\r\n    yield driver.findElement(webdriver.By.css(\".classSelector\")).click();\r\n  });\r\n});\r\n```\r\n\r\nBefore that I start the chromedriver but I can't make it work. This is the console output:\r\n\r\n\r\n> Application launch \"before each\" hook for \"shows an initial window\":\r\n>      Error: ChromeDriver did not start within 5000ms\r\n>       at Error (native)\r\n>       at node_modules/spectron/lib/chrome-driver.js:58:25\r\n>       at Request._callback (node_modules/spectron/lib/chrome-driver.js:116:45)\r\n>       at Request.self.callback (node_modules/spectron/node_modules/request/request.js:200:22)\r\n>       at Request.<anonymous> (node_modules/spectron/node_modules/request/request.js:1067:10)\r\n>       at IncomingMessage.<anonymous> (node_modules/spectron/node_modules/request/request.js:988:12)\r\n>       at endReadableNT (_stream_readable.js:913:12)\r\n>       at _combinedTickCallback (internal/process/next_tick.js:74:11)\r\n>       at process._tickCallback (internal/process/next_tick.js:98:9)\r\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/227862387","html_url":"https://github.com/electron/electron/issues/6179#issuecomment-227862387","issue_url":"https://api.github.com/repos/electron/electron/issues/6179","id":227862387,"user":{"login":"FranAguiar","id":18166018,"avatar_url":"https://avatars.githubusercontent.com/u/18166018?v=3","gravatar_id":"","url":"https://api.github.com/users/FranAguiar","html_url":"https://github.com/FranAguiar","followers_url":"https://api.github.com/users/FranAguiar/followers","following_url":"https://api.github.com/users/FranAguiar/following{/other_user}","gists_url":"https://api.github.com/users/FranAguiar/gists{/gist_id}","starred_url":"https://api.github.com/users/FranAguiar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FranAguiar/subscriptions","organizations_url":"https://api.github.com/users/FranAguiar/orgs","repos_url":"https://api.github.com/users/FranAguiar/repos","events_url":"https://api.github.com/users/FranAguiar/events{/privacy}","received_events_url":"https://api.github.com/users/FranAguiar/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T20:12:23Z","updated_at":"2016-06-22T20:12:23Z","body":"Yes it's supported, I'm just following this tutorial:\r\nhttps://github.com/electron/electron/blob/master/docs/tutorial/using-selenium-and-webdriver.md"}}
{"actor":{"display_login":"FranAguiar"}}