Skip to content

[🐛 Bug]: Problem with special character in username #11947

@MuhSchaf

Description

@MuhSchaf

What happened?

Hi dear Selenium-Team,

Selenium manager can’t find browser driver in user directory when the username has special characters inside. Selenium manager throws an DriverServiceNotFound exception.
To avoid this issue the browser driver has to put in the same directory as the program executable.

How can we reproduce the issue?

To reproduce create a Windows Username with a special character like René or Björgensen. After this use Selenium in its default configuration.

Relevant log output

Exception:
OpenQA.Selenium.DriverServiceNotFoundException: The file C:\Users\René\.cache\selenium\chromedriver\win32\112.0.5615.49\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
   at OpenQA.Selenium.DriverService..ctor(String servicePath, Int32 port, String driverServiceExecutableName, Uri driverServiceDownloadUrl)
   at OpenQA.Selenium.Chromium.ChromiumDriverService..ctor(String executablePath, String executableFileName, Int32 port, Uri downloadUrl)
   at OpenQA.Selenium.Chrome.ChromeDriverService..ctor(String executablePath, String executableFileName, Int32 port)
   at OpenQA.Selenium.Chrome.ChromeDriverService.CreateDefaultService(String driverPath, String driverExecutableFileName)
   at OpenQA.Selenium.Chrome.ChromeDriverService.CreateDefaultService(String driverPath)
   at OpenQA.Selenium.Chrome.ChromeDriverService.CreateDefaultService()

Operating System

Windows 10

Selenium version

4.8.1

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

Chrome (Version 111), Edge

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

Chromedriver were automatically downloaded by Selenium

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-dotnet.NET BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions