Giter Site home page Giter Site logo

Comments (2)

bonigarcia avatar bonigarcia commented on August 20, 2024

Using the latest WebDriverManager version (5.7.0 at the time of this writing) and clearing the cache (at least once) should fix this issue:

WebDriverManager.chromedriver().clearDriverCache().setup();

If not, please report your WebDriverManager traces. See: https://bonigarcia.dev/webdrivermanager/#troubleshooting

from webdrivermanager.

tlpbu avatar tlpbu commented on August 20, 2024

Hello!
I am using latest WebDriverManager version 5.8.0 and still have similar problem even with suggested fix.

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 124
Current browser version is 123.0.6312.122 with binary path /Applications/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing 

After debugging if is clear version of ChromeDriver is detected based on ordinary Chrome version via shell command.

➜ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
Google Chrome 124.0.6367.61 

~ 
➜ /Applications/Google\ Chrome\ for\ Testing.app/Contents/MacOS/Google\ Chrome\ for\ Testing --version 
Google Chrome for Testing 123.0.6312.122 

As a result eventually always latest ChomeDriver is being used and it required manually updating Chrome for Testing but in this case it is even more tricky since there is not compatible version available on https://googlechromelabs.github.io/chrome-for-testing/ (only 123, 125, 126 versions available as of now).

Quick solution locally to unblock for me now is to specify WebDriverManager.chromedriver().browserVersion('123').setup().

Big question is if it is correct by nature to detect browser version for chromedriver based on ordinary Chrome if Chrome for Testing is installed on particular machine and will be automatically used for test execution?

from webdrivermanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.