-
-
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]: [java] Cannot instantiate ChromeDriver on Windows using selenium 4.16 #13261
Comments
@jstefek, 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! |
@joerg1985 @bonigarcia seems the issue is now happening in non Docker environments? |
We need more information about this issue in order to troubleshoot. Please turn on logging and re-run your code. Information on how to adjust logs for your language can be found in our |
@titusfortner Downloaded the dependency using this:
Added this line in the code before initializing the driver Example:
I still see the same error in Console:
|
@diemol I don't think this is related to the other issue, the other issue could not read the json output. |
@letskodeit could you please try to run the |
@letskodeit yes, using that jar works! I was expecting to see SM logs, but looks like SM didn't even start in the first place. As with @joerg1985, I'm curious what it shows when you run |
@joerg1985 @titusfortner |
@bonigarcia is the |
Installed https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022 , did not help, still getting the |
Windows x86? :) |
ic, ok. |
Why is it working with version 0.4.15 and not with 0.4.16? |
Possibly related to the change in #13134 I guess As @nvborisenko and @jstefek realised above (but I didn't quite follow initially) , installing VC++ redistributable It looks it's linked to the x86 version ( Bit of a shame that the extra hidden runtime dependency is needed (especially to |
Does it mean |
As far as I can see, To build with the Microsoft Visual C++ toolchain as in #13134 and statically link the C runtime so that users don't need to install the redistributable I believe it would require the devs to configure the rust build with something like |
@titusfortner @chadlwilson |
I think there was a change to how we built for windows in 4.16 to fix a different problem. We need to hear back from @bonigarcia on this one. |
Sorry for the inconvenience. Installing Visual C++ should not be necessary. It seems the Rust flags I created PR #13281 to restore these flags when building Selenium Manager. If anyone needs the binaries built with that flag, it can be downloaded from here: https://github.com/SeleniumHQ/selenium/actions/runs/7166910213 |
@bonigarcia |
Yes. |
Fixes are in trunk. Thanks. |
How soon can we expect 4.17? Or could a selenium-java 4.16.2 be pushed out sooner just to fix this regression? |
You can use nightly if you need. https://www.selenium.dev/downloads/#nightly |
I see that 4.17.0 was published with commit for "Restore rust flags" mentioned in the release notes. Thanks! |
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?
I cannot instantiate ChromeDriver on selenium 4.16 on Windows 11.
Note: I was mainly focused to use version 4.16 to get over the bug #13091, which should be resolved by d1787a9 . On linux it seems to work correctly, but not on Windows.
How can we reproduce the issue?
Set up a simple maven project. Using just Selenium java.
with one executable main method:
Relevant log output
Using selenium 4.16 I get following error:
Using selenium 4.15 all works as expected.
Operating System
Windows 11
Selenium version
4.16
What are the browser(s) and version(s) where you see this issue?
Chrome 120
What are the browser driver(s) and version(s) where you see this issue?
from SeleniumManager
Are you using Selenium Grid?
no
The text was updated successfully, but these errors were encountered: