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

[🐛 Bug]: ChromeDriverService.CreateDefaultService() + service.Start() results in ArgumentNullException #12805

Closed
drauch opened this issue Sep 21, 2023 · 7 comments · Fixed by #12816

Comments

@drauch
Copy link
Contributor

drauch commented Sep 21, 2023

What happened?

Executing the following in a .NET 7 environment:

var service = ChromeDriverService.CreateDefaultService();
service.Start();

throws:

System.ArgumentNullException : Value cannot be null. (Parameter 'path1')
   at System.ArgumentNullException.Throw(String paramName)
   at System.IO.Path.Combine(String path1, String path2)
   at OpenQA.Selenium.DriverService.Start()

How can we reproduce the issue?

See above.

Relevant log output

-

Operating System

Windows 10

Selenium version

4.12.x

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

Chrome

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

ChromeDriver 117.0.5938.62

Are you using Selenium Grid?

no

@github-actions
Copy link

@drauch, 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!

@titusfortner
Copy link
Member

Diego fixed this in Java recently
5bce8d9

Need to do something similar here.

@nvborisenko
Copy link
Member

Reproduced it with 4.14.1.

@nvborisenko
Copy link
Member

Fixed by 6f97b8d

@titusfortner
Copy link
Member

so, uhh, looks like I didn't assign the result to driverServicePath 🤦
https://github.com/SeleniumHQ/selenium/pull/12816/files#diff-c38089621d41671b4719164b262303e275d4a4a442125fd9d4ea61eeca855c2bR267

@nvborisenko
Copy link
Member

Don't blame yourself, I approved your change.

Copy link

github-actions bot commented Dec 3, 2023

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.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants