I'm getting this error:
SessionNotCreatedError: session not created exception from timeout: Timed out receiving message from renderer: 600.000
I am running protractor tests on Windows 8 Chrome. What happens is that a Chrome tab will open but won't load the url, and will open
C:\Program Files(x86)\Google\Chrome\Application\chrome.exe
shell window. Then nothing else happens and the test times out. Which makes sense that I get a timeout error. But I'm not sure why it isn't loading the website in the first place.
When I close the chrome tab I then get this message:
SessionNotCreatedError: session not created exception from tab crashed`
I am up to date on both selenium standalone and chromedriver. The only thing I can think of is that Chrome was recently updated to 46.0.2490.71, but I don't have any problems on Windows 7 with this same version.
What is the issue here??
Here's the full log:
/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113
var template = new Error(this.message);
^
SessionNotCreatedError: session not created exception
from tab crashed
(Session info: chrome=46.0.2490.71)
(Driver info: chromedriver=2.16.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961),platform=Windows NT 6.3 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 30.24 seconds
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: 'Win8Test', ip: '192.168.1.185', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_45'
Driver info: org.openqa.selenium.chrome.ChromeDriver
at new bot.Error (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113:18)
at Object.bot.response.checkResponse (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/response.js:106:9)
at /Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:158:24
at [object Object].promise.ControlFlow.runInFrame_ (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)
at [object Object].promise.Callback_.goog.defineClass.notify (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)
at [object Object].promise.Promise.notify_ (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)
at Array.forEach (native)
at Object.goog.array.forEach (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/array/array.js:203:43)
at [object Object].promise.Promise.notifyAll_ (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:552:16)
at goog.async.run.processWorkQueue (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/run.js:125:21)
From: Task: WebDriver.createSession()
at Function.webdriver.WebDriver.acquireSession_ (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:155:22)
at Function.webdriver.WebDriver.createSession (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:129:30)
at [object Object].Builder.build (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/selenium-webdriver/builder.js:416:22)
at [object Object].DriverProvider.getNewDriver (/Users/awilliamson/projects/chewie/node_modules/protractor/lib/driverProviders/driverProvider.js:38:7)
at [object Object].Runner.createBrowser (/Users/awilliamson/projects/chewie/node_modules/protractor/lib/runner.js:180:37)
at /Users/awilliamson/projects/chewie/node_modules/protractor/lib/runner.js:256:21
at _fulfilled (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/q/q.js:797:54)
at self.promiseDispatch.done (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/q/q.js:826:30)
at Promise.promise.promiseDispatch (/Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/q/q.js:759:13)
at /Users/awilliamson/projects/chewie/node_modules/protractor/node_modules/q/q.js:525:49
[launcher] Process exited with error code 1`
Edit: I am using "protractor": "^2.5.1"
and "jasmine": "^2.3.2"
Note: For Chrome, go to the https://sites.google.com/chromium.org/driver/downloads website. Extract the package. Navigate to the drive:\ibi\AppStudio82\bin directory. Replace the chromedriver.exe for Chrome from the package you just downloaded into the drive:\ibi\AppStudio82\bin directory.
I am getting this same identical error please see below for my solution.
Checked in code yesterday, everything ran fine. Fired up a suite this morning and saw exact behavior cocoa is seeing.
Chrome/chromedriver are up to date. Protractor is v2.2 (working on upgrade), Jasmine v2x. Webdriver-manager update shows everything is cool. JDK up to date. The only thing I'm still chasing are the Jasmine-reporters, of which I am using v2x.
EDIT: I just resolved by:
Updating node.js from the msi file (located here: https://nodejs.org/en/)
Running the webmanager update (webdriver-manager update) which pulled down the latest selenium jar and chomedriver.exe
I then ran a test that was failing this morning and it ran successfully, no errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With