user2270832
user2270832

Reputation: 21

ChromeDriver only supports Chrome version 114 not 160

I've got the following error when my Chrome browser got updated to version 160:

"org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 119.0.6045.160 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'"

My POM file settings:

    <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.141.59</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
    <dependency>
        <groupId>io.github.bonigarcia</groupId>
        <artifactId>webdrivermanager</artifactId>
        <version>4.2.2</version>
    </dependency>

I tried to bump up webdrivermanager to 5.6.2 but it did not help. Anyone can help with this issue? Thanks a lot!!!

I tried to bump up webdrivermanager version and it did not help

Upvotes: 0

Views: 448

Answers (1)

Shawn
Shawn

Reputation: 8478

<version>3.141.59</version>

You are using very old version of Selenium. Upgrade to the latest version of selenium i.e. v4.15.0.

And once you upgrade to latest selenium, you no longer need WebDriverManager library. The new built-in tool Selenium Manager will do what WebDriverManager used to do before.

Code can be as simple as:

public static void main(String[] args) {
    WebDriver driver = new ChromeDriver();
    driver.manage().window().maximize();
    driver.get("https://www.google.com/");
    driver.quit();
}

Refer below answers for more details on this topic:

Upvotes: 0

Related Questions