-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
Description
I am running my selenium test in a isolated environment where we do not allow direct access to the public internet by default. Based on the selenium manager documentation (https://www.selenium.dev/documentation/selenium_manager/) , in these situations I should set the SE_OFFLINE environment variable to value true. Every time I launch my test and create a Chrome driver, I see There was an error managing chromedriver (error sending request for url (https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json)); using driver found in the cache message in the logs, which is annoying. If the SE_OFFLINE is true, then the selenium manager should know that access to public internet is not allowed and it should be silent if it can't connect the internet. Only tried with Chrome, but I would assume this does not depend on browser and is a bug it the selenium manager.
Reproducible Code
# Before running, disconnect your laptop/device/something from the internet
from selenium import webdriver
driver = webdriver.Chrome()
try:
# Any static webpage in you local filesystem is OK.
# Example use https://github.com/MarketSquare/robotframework-browser/blob/main/node/dynamic-test-app/static/clock.html
driver.get("file://clock.html").
except Exception as e:
print(f"An error occurred: {e}")
finally:
driver.quit()
print("Driver closed successfully.")Debugging Logs
There was an error managing chromedriver (error sending request for url (https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json)); using driver found in the cache
Driver closed successfully.
ℹ️ Last known working version: No idea but I previosly reported this in https://github.com/SeleniumHQ/selenium/issues/13809