-
-
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]: Unable to download in offline mode when network is Online #12521
Comments
@RohitM-IN, 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! |
@bonigarcia we need to figure out a better error message... Selenium manager is opt in for downloads, but gets used to find drivers on path. So we put it in offline mode if you don't opt in. Add |
Which error message do you mean? |
Somehow we want people to know that the "fix" for this message is to enable selenium-manager. But maybe it doesn't belong in the Selenium Manager binary. @diemol is there a place to put this in the Java code? |
I did added but it seems its like that java -jar selenium-server-4.11.0.jar standalone --selenium-manager true --log-level FINE --log ./trace.log the output log hasn't changed Have i missed something ?
|
@bonigarcia it shouldn't be in offline mode if |
I think so, but I don't know the internal logic of Grid. Maybe @diemol knows. We can see in the provided logs that SM is called with the offline flag at the beginning:
... but not at the end:
|
Good catch, that's weird. I'm reopening until we get it figured out. |
Grid first tries to find drivers on the PATH through Selenium Manager and uses the offline mode, which explains the first set of messages. Then, if the I think the confusion arises with this message:
I believe it is a |
If |
if you need my help with anything for debug I am here :) again I tried the it with following command
and trace.log if needed |
I did the same, but what I noticed when looking at the --log-level FINE is that the path the chromedriver was being installed to did download the drivers even though I got that offline message. I was able to verify that on my hub, since I'm running a hub with multiple nodes. |
Hello While this command "--selenium-manager true" So let's say it is fixed for stand alone .. will this also works for Grid ? .. i am asking because Grid was working normally in 4.10.0 with neither local drivers nor the manager true command Thanks in advance |
How does your |
I've pushed a fix that covers the following:
|
Didn't look at code are we already ensuring IE is only windows? |
This is a sample ... [server] [node] Thanks for your reply |
Thanks for your efforts .. |
Selenium 4.12 will hopefully be out today. |
Yes. This did not change. |
This is not yet fixed in Selenium 4,12 version. For chrome we are thrown with offline error. Please advice. Unable to discover proper chromedriver version in offline mode |
What error? Please share logs otherwise it is hard to understand what you mean. |
@diemol Thanks for the response, sharing the log below
|
What is the error? I see warning messages but no error. |
Sorry my bad, its working fine post restart. Thanks. |
02:33:19.951 WARN [SeleniumManager.lambda$runCommand$1] - Exception trying to discover chromedriver version: Unable to discover proper chromedriver version in offline mode |
@limuyuan you need to use the latest version of Selenium. Update to Selenium 4.12.1 |
Hello @titusfortner If I am working with selenium grid version 4.12.0 How to make the drivers to be downloaded automatically.. It was working fine on the same version ... now I am facing the error I am expecting you may guide me to add "--selenium-manager true" But i really do not know where to add this command while running command to register node from TOML file |
Should just be add this to your toml:
|
I've checked my code .. the TOML file was created empty .. don't know why suddenly ! .. but I fixed it anyway .. and the TOML file registration back normally to working without adding this line .. maybe there's some kind of default value ... as I was facing the error but the process was resumed correctly eventually I've added the line and I can no longer see the error .... Many Thanks @titusfortner |
Hi @titusfortner Can you please share how to use this in |
@rpmabhishek - Refer here Replace the steps that setup volumes via commandline for docker, with the volume section in docker-compose yaml file. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
while booting the application the application does not load the IE, safari which i know is not present in my local system but the prompt says it also tried downloading it but it not able to discover it in offline mode Is this a bug ?
I have given initial debug log with fine level hope this helps in debug.
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
4.11.0
What are the browser(s) and version(s) where you see this issue?
edge 115.0.1901.188, firefox 116.0.1.8615, chrome 115.0.5790.170
What are the browser driver(s) and version(s) where you see this issue?
edge 115.0.1901.188, firefox 116.0.1.8615, chrome 115.0.5790.170
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: