-
-
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]: Error occurs if path contains multibyte characters #14066
Comments
@matsuda-dcom, 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 does this look like it is output from the manager, (i.e., not the bindings)? Are there unit tests for these characters? |
Similar issues were reported in the past. When that happened, I tested the Rust side with a custom cache path with non-ASCII characters, and the Rust side worked as expected. But those tests I did were manual, i.e., not included in an automated test. So, I have just included some parameterized automated tests about using paths with similar characters. The Windows build is failing in CI, but for other reasons. The new tests should work. However, the reported problem comes from Rust. Unfortunately, the error message is not very informative due to a problem with the error message (solved here). In summary, I don't know why this problem happens to @matsuda-dcom. @matsuda-dcom: Can you please execute the following command from your shell and share the output here? Thanks
|
@bonigarcia
This is the result of executing with a path that does not contain multibyte characters.
|
I found the same issue on the web. |
If I change the nuget version back to 4.10.0 the test passes.
|
According to the command execution output, Selenium Manager seems to work as expected. So, I still do not understand why this error is happening. @matsuda-dcom: Please turn on logging and re-run your code. Information on how to adjust logs for your language can be found in our Troubleshooting documentation. Also, you can update your Selenium Manager binary to get a better error description. I mean, replace the following file: C:\ProgramData\Jenkins.jenkins\workspace\テスト\システムテスト\MyProject\bin\Debug\net8.0\selenium-manager\windows\selenium-manager.exe With the one downloaded from here: selenium-manager-windows (you need to uncompress that ZIP file and replace the previous EXE file). Thanks. |
The first log, with the execution from a path that contains multibyte characters, appears to do the right thing. |
@bonigarcia
Debug logs are output to the console.
|
@bonigarcia
|
@titusfortner
The error continues to occur. The problem is not resolved. |
This error occurs with nuget version 4.11.0 and above.
|
The problem is that you have a driver in your
Selenium-Manager detects this driver. Unfortunately, it cannot parse that driver's path properly because of the Japanese characters. I've been debugging this problem, and I have found that it is caused by the execution of the command So, the following Selenium Manager binary should fix the issue: selenium-manager-windows @matsuda-dcom: Please download that file, uncompress it, and replace the resulting EXE with the one that is being used in your test: C:\ProgramData\Jenkins.jenkins\workspace\テスト\システムテスト\MyProject\bin\Debug\net8.0\selenium-manager\windows\selenium-manager.exe Please rerun your test and share the results here, thanks. |
@bonigarcia |
@bonigarcia Can we have quick call? I am still facing issue . You can call me on whatsapp +919404918953 |
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?
I noticed one day that my Jenkins job was failing.
I am writing tests for a web application with selenium using C#.
new ChromeDriver()
fails if the path of the project file being tested contains multi-byte characters.As far as I remember, no errors occurred in ver4.10.0.
The test passes by removing multibyte characters from the path.
How can we reproduce the issue?
Write and execute test code in a file whose path contains multibyte characters.
Relevant log output
Operating System
Windows Server 2022
Selenium version
4.21.0
What are the browser(s) and version(s) where you see this issue?
Chrome 125
What are the browser driver(s) and version(s) where you see this issue?
4.21.0
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: