{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2614","repository_url":"https://api.github.com/repos/SeleniumHQ/selenium","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2614/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2614/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2614/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/2614","id":171327045,"number":2614,"title":"Chrome v54 raises SessionNotCreatedError and exits","user":{"login":"seanpoulter","id":2585460,"avatar_url":"https://avatars.githubusercontent.com/u/2585460?v=3","gravatar_id":"","url":"https://api.github.com/users/seanpoulter","html_url":"https://github.com/seanpoulter","followers_url":"https://api.github.com/users/seanpoulter/followers","following_url":"https://api.github.com/users/seanpoulter/following{/other_user}","gists_url":"https://api.github.com/users/seanpoulter/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpoulter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpoulter/subscriptions","organizations_url":"https://api.github.com/users/seanpoulter/orgs","repos_url":"https://api.github.com/users/seanpoulter/repos","events_url":"https://api.github.com/users/seanpoulter/events{/privacy}","received_events_url":"https://api.github.com/users/seanpoulter/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-08-16T05:21:51Z","updated_at":"2016-11-04T10:45:24Z","closed_at":"2016-08-16T15:46:59Z","body":"## Meta -\n\nOS: Windows 10 x64 build 10586\n\nSelenium Version: selenium-webdriver (npm) v3.0.0-beta-2 **or** selenium-webdriver (gem) v2.53.4\n\nBrowser: Chrome (dev stream)\n\nBrowser Version:  54.0.2824.0\n\n(related) Issue filed with the ChromeDriver project: [#1464](https://bugs.chromium.org/p/chromedriver/issues/detail?id=1464)\n## Expected Behavior -\n\nA new session is created in Chrome.\n## Actual Behavior -\n\nChrome opens displaying only a blank window (menu, frame, etc are white) then promptly closes. An error is logged to the console. The message is included below in the steps to reproduce:\n## Steps to reproduce -\n\nWith the ChromeDriver v2.22 or 2.23 available, and dev stream for Chrome (now at v54):\n### JavaScript\n\nEdit and run the [google_search.js example](https://github.com/SeleniumHQ/selenium/blob/c10e8a955883f004452cdde18096d70738397788/javascript/node/selenium-webdriver/example/google_search.js#L38) using `.forBrowser('chrome')`:\n\n``` .js\nvar webdriver = require('..'),\n    By = webdriver.By,\n    until = webdriver.until;\n\nvar driver = new webdriver.Builder()\n    .forBrowser('chrome')\n    .build();\n\ndriver.get('http://www.google.com/ncr');\ndriver.findElement(By.name('q')).sendKeys('webdriver');\ndriver.findElement(By.name('btnG')).click();\ndriver.wait(until.titleIs('webdriver - Google Search'), 1000);\ndriver.quit();\n```\n\nOutput is:\n\n```\nX:\\node_modules\\selenium-webdriver\\lib\\promise.js:654\n    throw error;\n    ^\n\nSessionNotCreatedError: session not created exception\nfrom unknown error: Runtime.executionContextCreated has invalid 'context': {\"auxData\":{\"frameId\":\"12656.1\",\"isDefault\":true},\"id\":1,\"name\":\"\",\"origin\":\"://\"}\n  (Session info: chrome=54.0.2824.0)\n  (Driver info: chromedriver=2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129),platform=Windows NT 10.0.10586 x86_64)\n    at WebDriverError (X:\\node_modules\\selenium-webdriver\\lib\\error.js:27:5)\n    at SessionNotCreatedError (X:\\node_modules\\selenium-webdriver\\lib\\error.js:214:5)\n    at Object.checkLegacyResponse (X:\\node_modules\\selenium-webdriver\\lib\\error.js:505:15)\n    at parseHttpResponse (X:\\node_modules\\selenium-webdriver\\lib\\http.js:396:13)\n    at doSend.then.response (X:\\node_modules\\selenium-webdriver\\lib\\http.js:328:11)\n    at process._tickCallback (internal/process/next_tick.js:103:7)\nFrom: Task: WebDriver.createSession()\n    at Function.createSession (X:\\node_modules\\selenium-webdriver\\lib\\webdriver.js:366:24)\n    at Driver (X:\\node_modules\\selenium-webdriver\\chrome.js:804:38)\n    at Builder.build (X:\\node_modules\\selenium-webdriver\\index.js:546:16)\n    at Object.<anonymous> (X:\\node_modules\\selenium-webdriver\\example\\google_search.js:44:6)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\nFrom: Task: WebDriver.navigate().to(http://www.google.com/ncr)\n    at Driver.schedule (X:\\node_modules\\selenium-webdriver\\lib\\webdriver.js:414:17)\n    at Navigation.to (X:\\node_modules\\selenium-webdriver\\lib\\webdriver.js:1042:25)\n    at Driver.get (X:\\node_modules\\selenium-webdriver\\lib\\webdriver.js:832:28)\n    at Object.<anonymous> (X:\\node_modules\\selenium-webdriver\\example\\google_search.js:46:8)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n```\n### Ruby v2.2.3\n\n_Apologies for hastily using the `watir-webdriver` gem that wraps `selenium-webdriver`._\n\n``` .bat\ngem install 'watir-webdriver'\nruby -e \"require 'watir-webdriver; b = Watir::Browser.new :chrome; b.goto 'google.com';\"\n```\n\nOutput is:\n\n```\nc:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/response.rb:70:in `assert_ok': session not created exception (Selenium::WebDriver::Error::SessionNotCreatedError)\nfrom unknown error: Runtime.executionContextCreated has invalid 'context': {\"auxData\":{\"frameId\":\"7784.1\",\"isDefault\":true},\"id\":1,\"name\":\"\",\"origin\":\"://\"}\n  (Session info: chrome=54.0.2824.0)\n  (Driver info: chromedriver=2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129),platform=Windows NT 10.0.10586 x86_64)\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/response.rb:34:in `initialize'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/common.rb:87:in `new'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/common.rb:87:in `create_response'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/default.rb:90:in `request'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/common.rb:68:in `call'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/bridge.rb:649:in `raw_execute'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/bridge.rb:123:in `create_session'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/bridge.rb:87:in `initialize'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/chrome/bridge.rb:48:in `initialize'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/common/driver.rb:64:in `new'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/common/driver.rb:64:in `for'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver.rb:84:in `for'\n    from c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/watir-webdriver-0.9.3/lib/watir-webdriver/browser.rb:46:in `initialize'\n    from -e:1:in `new'\n    from -e:1:in `<main>'\n```\n## Additional Sightings -\n- On StackOverflow - [Protractor - Getting “Runtime.executionContextCreated has invalid 'context” error when i run Protractor](https://stackoverflow.com/questions/38918486/protractor-getting-runtime-executioncontextcreated-has-invalid-context-erro)\n- In CI logs on 2016-08-06 - [tastejs / todomvc - Build #1619](https://travis-ci.org/tastejs/todomvc/builds/150285315#L476)\n"},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/258398516","html_url":"https://github.com/SeleniumHQ/selenium/issues/2614#issuecomment-258398516","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2614","id":258398516,"user":{"login":"hakehuang","id":800198,"avatar_url":"https://avatars.githubusercontent.com/u/800198?v=3","gravatar_id":"","url":"https://api.github.com/users/hakehuang","html_url":"https://github.com/hakehuang","followers_url":"https://api.github.com/users/hakehuang/followers","following_url":"https://api.github.com/users/hakehuang/following{/other_user}","gists_url":"https://api.github.com/users/hakehuang/gists{/gist_id}","starred_url":"https://api.github.com/users/hakehuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakehuang/subscriptions","organizations_url":"https://api.github.com/users/hakehuang/orgs","repos_url":"https://api.github.com/users/hakehuang/repos","events_url":"https://api.github.com/users/hakehuang/events{/privacy}","received_events_url":"https://api.github.com/users/hakehuang/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T10:45:24Z","updated_at":"2016-11-04T10:45:24Z","body":"If you still have problem when upgrade to chromedriver2.25, most likely that you have a old chromdriver hidden in your system path. below is my debug trick\r\nadd below line in the \r\n c:/Ruby/Ruby223-x64/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/chrome/service.rb\r\nputs @executable_path \r\nbefore the \r\nserver_command = [@executable_path, \"--port=#{@port}\", *@extra_args]\r\nthen you will know where to delete the old hidden chromedrive"}}
{"actor":{"display_login":"hakehuang"}}