Google Chrome browser and driver versioning



  • I have a CI pipeline that runs my E2E tests, which the agent is prepared by:

    • Install Google Chrome by brew (latest)
    • Chromedriver is installed by chromedriver_binary python package (fixed version)

    Sometimes, I got the error with an outdated chromedriver, since I didn't set the version on the brew.

    What is the best practices in this case: Use the latest driver and browser, or keep it static and updated as requested?



  • Every version of Chrome will only work with a specific version of ChromeDriver. If there is a mismatch in those versions, you will get an error.

    The best approach will depend on what version of Chrome you want to test against. For most, this will be the latest version of Chrome which requires the latest version of ChromeDriver.

    If you have a requirement to test an older version, you will need an older version of ChromeDriver that matches that Chrome version.

    In each case, you should be able to explicitly setup the selenium capabilities to target the browser version you want to test. The exact way to to do this depends on your programming language you are writing in.

    For more info on ChromeDriver versions, see https://chromedriver.chromium.org/downloads



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2