-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: Selenium manger in offline mode emits a warning which it should not do. #13809
Comments
@aaltat, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Thank you for lighting fast fix. |
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. |
What happened?
When selenium manager is run in a restricted environment (access to public internet is not allowed) and when offline mode is to
true
. Then selenium manager creates a warning (at least with Python bindings) that it can not access to public internet. When offline mode is set to true, I think such warning should not be created.How can we reproduce the issue?
true
Then selenium manager will be run like this:
/path/to/python/site-packages/selenium/webdriver/common/linux/selenium-manager --browser firefox --language-binding python --trace --output json
In this case the selenium manager output will contain this json snippet:After that, selenium Python bindings will collect the output and log all warning messages: https://github.com/SeleniumHQ/selenium/blob/selenium-4.19.0/py/selenium/webdriver/common/selenium_manager.py#L148
Relevant log output
In logs, I see this warning:
Exception managing firefox: Unable to discover proper geckodriver version in offline mode
Operating System
Ubuntu 22
Selenium version
Python 4.19
What are the browser(s) and version(s) where you see this issue?
Firefox 124.0.1
What are the browser driver(s) and version(s) where you see this issue?
Geckodriver 0.34.0
Are you using Selenium Grid?
Not using
The text was updated successfully, but these errors were encountered: