Login Register
Code2night
  • Home
  • Guest Posts
  • Blog Archive
  • Tutorial
  • Languages
    • Angular
    • C
    • c#
    • C#
    • HTML/CSS
    • Java
    • JavaScript
    • Node.js
    • Python
    • React
    • Security
    • SQL Server
    • TypeScript
  • Post Blog
  • Tools
    • JSON Beautifier
    • HTML Beautifier
    • XML Beautifier
    • CSS Beautifier
    • JS Beautifier
    • PDF Editor
    • Word Counter
    • Base64 Encode/Decode
    • Diff Checker
    • JSON to CSV
    • Password Generator
    • SEO Analyzer
  1. Home
  2. Blog
  3. org.openqa.selenium.SessionNotCreatedException: session not created exception

org.openqa.selenium.SessionNotCreatedException: session not created exception

Date- Aug 20,2023

5734

Java ChromeDriver

org.openqa.selenium.SessionNotCreatedException

Here are a few common scenarios that can lead to this exception:

  1. Driver Configuration Issues: If your driver configuration is incorrect or incompatible with the browser version you're using, it might result in a session not created exception. Ensure that you're using the appropriate WebDriver version for your browser.
  2. Incorrect WebDriver Path: If the path to the WebDriver executable is incorrect or not accessible, Selenium won't be able to create a new session. Make sure you're providing the correct path to the WebDriver executable.Driver Configuration Issues: If your driver configuration is incorrect or incompatible with the browser version you're using, it might result in a session not created exception. Ensure that you're using the appropriate WebDriver version for your browser.
  3. Browser Version Mismatch: If you're using an outdated version of the WebDriver that doesn't support the browser version you're trying to automate, you might encounter this exception. Update your WebDriver to a version that's compatible with your browser.
  4. Browser Configuration: Some browsers, like Chrome, require additional configurations to work with Selenium. For instance, you might need to specify the path to the Chrome binary using the chrome.binary property.
  5. Firewall or Network Issues: Network connectivity issues, firewall restrictions, or proxy settings can also prevent Selenium from creating a new session. Check your network settings and ensure that Selenium can establish a connection to the browser.
  6. Driver Initialization: If you're not initializing the WebDriver correctly before trying to create a session, you'll likely encounter this exception. Make sure you're creating an instance of the WebDriver and setting up any necessary configurations before attempting to start a session.
  7. Runtime Environment: If you're running Selenium tests in a specific runtime environment (like a server or a CI/CD pipeline), make sure that environment has the necessary dependencies and configurations to run Selenium successfully.

S
Shubham Batra
Programming author at Code2Night — sharing tutorials on ASP.NET, C#, and more.
View all posts →

Related Articles

java.lang.IllegalStateException: The driver executable does not exist
Aug 21, 2023
Integrating Google Ads SDK in Android Apps: A Step-by-Step Guide
Mar 18, 2026
Understanding Design Patterns in Java: A Comprehensive Guide
Mar 17, 2026
Mastering JUnit Testing in Java: A Comprehensive Guide
Mar 16, 2026

Comments

Contents

More in Java

  • User-defined data types in java 6179 views
  • Java Type Casting 6170 views
  • How to add (import) java.util.List; in eclipse 5781 views
  • Java Program to Display Fibonacci Series 4890 views
  • java.lang.IndexOutOfBoundsException 4256 views
View all Java posts →

Tags

AspNet C# programming AspNet MVC c programming AspNet Core C software development tutorial MVC memory management Paypal coding coding best practices data structures programming tutorial tutorials object oriented programming Slick Slider StripeNet
Free Download for Youtube Subscribers!

First click on Subscribe Now and then subscribe the channel and come back here.
Then Click on "Verify and Download" button for download link

Subscribe Now | 1760
Download
Support Us....!

Please Subscribe to support us

Thank you for Downloading....!

Please Subscribe to support us

Continue with Downloading
Be a Member
Join Us On Whatsapp
Code2Night

A community platform for sharing programming knowledge, tutorials, and blogs. Learn, write, and grow with developers worldwide.

Panipat, Haryana, India
info@code2night.com
Quick Links
  • Home
  • Blog Archive
  • Tutorials
  • About Us
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Guest Posts
  • SEO Analyzer
Free Dev Tools
  • JSON Beautifier
  • HTML Beautifier
  • CSS Beautifier
  • JS Beautifier
  • Password Generator
  • QR Code Generator
  • Hash Generator
  • Diff Checker
  • Base64 Encode/Decode
  • Word Counter
  • SEO Analyzer
By Language
  • Angular
  • C
  • c#
  • C#
  • HTML/CSS
  • Java
  • JavaScript
  • Node.js
  • Python
  • React
  • Security
  • SQL Server
  • TypeScript
© 2026 Code2Night. All Rights Reserved.
Made with for developers  |  Privacy  ·  Terms
Translate Page