Throwing error - org.openqa.selenium.SessionNotCreatedException: session not created exception

0 votes

I'm trying to run some Selenium tests using the Selenium Chrome Driver, but it is throwing an error:

Starting ChromeDriver 2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129) on port 42985

Only local connections are allowed.

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: session not created exception

from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"7576.1","isDefault":true},"id":1,"name":"","origin":"://"}

  (Session info: chrome=54.0.2840.59)

  (Driver info: chromedriver=2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129),platform=Windows NT 10.0.14393 x86_64) (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 2.48 seconds

Build info: version: 'unknown', revision: '2aa21c1', time: '2016-08-02 14:59:43 -0700'

System info: host: 'SUJITH', ip: '192.168.43.228', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_101'

Driver info: org.openqa.selenium.chrome.ChromeDriver

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)

    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)

    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:683)

    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:247)

    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130)

    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:143)

    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:170)

    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:159)

    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:116)

    at Selenium.Test2.main(Test2.java:15)

Why is this happening, and how can I fix it?

Jul 20, 2018 in Selenium by Martin
• 4,210 points
1,075 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Update your chrome driver with latest version. It will work fine.

answered Jul 20, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

Selenium XPath error:- Element not found

The reason for Element not found exception ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,030 points
1,485 views
0 votes
1 answer

Error: FF Browser not working for Selenium test after update

Since Firefox's latest update to version 47.0, ...READ MORE

answered Apr 20, 2018 in Selenium by king_kenny
• 3,590 points
61 views
0 votes
1 answer

Selenium Exception: Element is not visible

Finding the element before locating the one ...READ MORE

answered May 7, 2018 in Selenium by king_kenny
• 3,590 points
2,850 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,030 points
60 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
431 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
49 views
0 votes
1 answer

Error: org.openqa.selenium.ElementNotInteractableException

Try to use javascriptExecutor to click the ...READ MORE

answered Jul 30, 2018 in Selenium by Samarpit
• 5,130 points
510 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.