SeleniumHQ / SeleniumHQ/selenium

[🐛 Bug]: Incorrect warning about mismatched browser/driver version

Open
#17,521 23 comments 0 reactions 0 assignees View on GitHub
B-manager C-rb C-rust D-chrome OS-linux
Dominant language
Java
Stars
34.5k
Forks
8.7k
Avg merge
2d 1h
Merged PRs (30d)
92

Description

### Description

Trying to run capybara with chrome and chromedriver on CircleCI.

circleci ruby image:
```
build-essential 12.9ubuntu3, bundler 4.0.8, curl 7.81.0, docker 28.1.1, docker-compose Docker Compose version v2.27.1 v2.27.1, dockerize v0.8.0, gem 4.0.8, git 2.53.0, java 11.0.30, jq 1.6, node 24.14.0, ruby 3.4.9, selenium 3.141.59, ubuntu 22.04.5 LTS, wget 1.21.2, yarn 1.22.22
```

The warning message we get:

```
2026-05-19 08:35:05 WARN Selenium [:selenium_manager] Exception managing chrome: Wrong browser/driver version
2026-05-19 08:35:05 WARN Selenium [:selenium_manager] The chromedriver version (148.0.7778.167) detected in PATH at /usr/local/bin/chromedriver might not be compatible with the detected chrome version (3.4.9); currently, chromedriver is recommended for chrome 3.*, so it is advised to delete the driver in PATH and retry
```

The version 3.4.9 makes no sense. Our initial setup used the circleci ruby image (ubuntu 22) that includes browsers, which included chrome 146. We then use circle's browsertools orb to install latest chrome with chromedriver.

That leaves us with chrome and chromedriver version 148.

(Confirmed with:

```
which -a google-chrome && google-chrome --version
/usr/bin/google-chrome
/bin/google-chrome
Google Chrome 148.0.7778.167
```

We also tried using a non-browsers ruby image and just letting the orb install chrome/driver, which installs 148 of both.

We also tried using the -browsers ruby image and _not_ replacing the version of chrome (just letting the chromedriver install match itself to existing chrome), which installed chromedriver 146.

In all cases, we continue to get this warning from selenium, with a version number that makes no sense.

The only thing that seems related is that we're using ruby 3.4.9. But why would selenium-webdriver be reporting that as the _chrome_ version?

### Reproducible Code

```shell
CircleCI Ruby image 3.4:
docker:
- image: cimg/ruby:3.4 # https://circleci.com/developer/images/image/cimg/ruby

Chrome+Chromedriver 148 installed by browser-tools orb:
- browser-tools/install_chrome
- browser-tools/install_chromedriver

which -a google-chrome && google-chrome --version
/usr/bin/google-chrome
/bin/google-chrome
Google Chrome 148.0.7778.167

selenium-webdriver ruby gem 4.44.0

driven by capybara (3.40.0) and rspec (3.13)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.