selenium icon indicating copy to clipboard operation
selenium copied to clipboard

[🐛 Bug]: [Ruby] Selenium manger in offline mode emits a warning

Open MatzFan opened this issue 7 months ago • 1 comments

Description

This is a duplicate/reopening of #13809 but for the Ruby bindings - i.e. the log message "Exception managing firefox: Unable to discover proper geckodriver version in offline mode" is still set at [WARN], not [DEBUG] level when SE_OFFLINE is "true".

Reproducible Code

# with env var SE_OFFLINE set to "true"

require 'selenium-webdriver'

driver = Selenium::WebDriver.for :firefox
driver.quit

Debugging Logs

In my terminal output I see the following:

INFO Selenium [:logger_info] Details on how to use and modify Selenium logger:
  https://selenium.dev/documentation/webdriver/troubleshooting/logging

WARN Selenium [:selenium_manager] Exception managing firefox: Unable to discover proper geckodriver version in offline mode

The second message should be DEBUG level. Also, the first message does not appear when SE_OFFLINE is not set to true, so I expect that should not be there either.

MatzFan avatar May 31 '25 11:05 MatzFan

@MatzFan, thank you for creating this issue. We will troubleshoot it as soon as we can.

Selenium Triage Team: remember to follow the Triage Guide

selenium-ci avatar May 31 '25 11:05 selenium-ci

I am unable to reproduce this issue. I see a DEBUG log in Selenium Manager, not WARN:

> set SE_OFFLINE=true

> selenium-manager-windows --browser chrome --debug --clear-metadata
[2025-08-14T16:55:49.912Z DEBUG] Deleting metadata file C:\Users\boni\.cache\selenium\se-metadata.json
[2025-08-14T16:55:49.936Z DEBUG] chromedriver not found in PATH
[2025-08-14T16:55:49.937Z DEBUG] chrome detected at C:\Program Files\Google\Chrome\Application\chrome.exe
[2025-08-14T16:55:49.937Z DEBUG] Detected browser: chrome 139.0.7258.67
[2025-08-14T16:55:50.107Z DEBUG] There was an error managing chromedriver (Unable to discover proper chromedriver version in offline mode); using driver found in the cache
[2025-08-14T16:55:50.108Z INFO ] Driver path: C:\Users\boni\.cache\selenium\chromedriver\win64\139.0.7258.68\chromedriver.exe
[2025-08-14T16:55:50.108Z INFO ] Browser path: C:\Program Files\Google\Chrome\Application\chrome.exe

> selenium-manager-windows --version
selenium-manager 0.4.35

What Selenium version are you using, @MatzFan?

bonigarcia avatar Aug 14 '25 16:08 bonigarcia

Hi, sorry I should have included that. 4.34.0 when reported, still occurs with 4.35.0 now.

Edit: My OS is Mint 22.1

MatzFan avatar Aug 14 '25 18:08 MatzFan

@MatzFan I have just committed a patch to change the log level of that trace to DEBUG when offline mode is on. It will available for the next release of Selenium/Selenium Manager.

bonigarcia avatar Aug 15 '25 10:08 bonigarcia

This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Sep 14 '25 22:09 github-actions[bot]