Skip to content
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

detect chrome path with wmic is deprecated #1407

Open
rxxy opened this issue Dec 23, 2024 · 1 comment
Open

detect chrome path with wmic is deprecated #1407

rxxy opened this issue Dec 23, 2024 · 1 comment

Comments

@rxxy
Copy link

rxxy commented Dec 23, 2024

https://github.com/bonigarcia/webdrivermanager/blob/7a70df443154872e4473f85c7d591e234ae5ab75/src/main/java/io/github/bonigarcia/wdm/versions/VersionDetector.java#L200C32-L200C47

wmic is deprecated in win11, I have no wmic command in win11, so I detected chrome nothing
see https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmic

@bonigarcia
Copy link
Owner

Yes, I'm aware WMIC is going to be removed in the future. See: https://techcommunity.microsoft.com/blog/windows-itpro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/4039242

But it continues working in Windows 11, to the best of my knowledge. And in any case, WebDriverManager also uses the registry information to discover browser versions (see here).

In any case, I plan to change the WMIC commands used in WebDriverManager with the equivalent PowerShell commands in the short future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants