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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: NoSuchDriverException under Windows if user home contains special characters #13653

Closed
ivy-lmu opened this issue Mar 5, 2024 · 4 comments

Comments

@ivy-lmu
Copy link

ivy-lmu commented Mar 5, 2024

What happened?

Under Windows, it is possible that the user's home directory contains special characters such as 眉, 盲 and 枚 etc..
With the user home C:\Users\DieL眉cke the following line of code in Java leads to NoSuchDriverException:
WebDriver driver = new ChromeDriver();

With C:\Users\hello the same code works fine.

How can we reproduce the issue?

https://github.com/ivy-lmu/webdriver

Relevant log output

C:\Users\DieL眉cke
Exception in thread "main" org.openqa.selenium.remote.NoSuchDriverException: chromedriver at location C:\Users\DieL?录cke\.cache\selenium\chromedriver\win64\122.0.6261.94\chromedriver.exe, does not exist
For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location/
Build info: version: '4.18.1', revision: 'b1d3319b48'
System info: os.name: 'Windows Server 2022', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.10'
Driver info: driver.version: ChromeDriver
        at org.openqa.selenium.remote.service.DriverFinder.getPath(DriverFinder.java:76)
        at org.openqa.selenium.remote.service.DriverFinder.getPath(DriverFinder.java:33)
        at org.openqa.selenium.chrome.ChromeDriver.generateExecutor(ChromeDriver.java:99)
        at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:89)
        at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:84)
        at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:52)
        at com.example.Main.main(Main.java:9)

Operating System

Windows

Selenium version

Java 4.18.1

What are the browser(s) and version(s) where you see this issue?

Chrome, Firefox

What are the browser driver(s) and version(s) where you see this issue?

ChromeDriver, GeckoDriver

Are you using Selenium Grid?

No response

Copy link

github-actions bot commented Mar 5, 2024

@ivy-lmu, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol
Copy link
Member

diemol commented Mar 5, 2024

@bonigarcia I thought this was fixed a while ago, do you know?

@bonigarcia
Copy link
Member

Yes, it was reported in the .Net bindings: #11947

... and solved here: bfcda90

Perhaps it is happening also in the Java bindings.

@joerg1985
Copy link
Member

The same change has been done for the java bindings.

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

4 participants