Skip to content

[dotnet] allow user to start service before creating driver#12816

Merged
titusfortner merged 1 commit intotrunkfrom
12805
Sep 25, 2023
Merged

[dotnet] allow user to start service before creating driver#12816
titusfortner merged 1 commit intotrunkfrom
12805

Conversation

@titusfortner
Copy link
Copy Markdown
Member

Description

Create a GetDefaultDriverOptions() method in each driver service class to allow passing to the DriverFinder method if starting the driver without a provided location.

Motivation and Context

Fixes #12805
Similar to how 5bce8d9 fixes #12682

@titusfortner titusfortner merged commit e66fbf5 into trunk Sep 25, 2023
@titusfortner titusfortner deleted the 12805 branch September 25, 2023 13:00
@madushag
Copy link
Copy Markdown

madushag commented Oct 19, 2023

@titusfortner I don't believe this issue has been addressed entirely. I'm running into the same error message as documented in #12805 using the latest version of Selenium (4.14.1).

While debugging through the code, I see that this call to DriverFinder.FullPath(GetDefaultDriverOptions()); (line 221) isn't setting the private members driverServicePath and driverServiceExecutableName, which I believe in turn causes the call to driverServiceProcess.StartInfo.FileName = Path.Combine(driverServicePath, driverServiceExecutableName); in DriverService.cs to fail at line 224.
git-errror

@nvborisenko
Copy link
Copy Markdown
Member

I have reopened that issue, thanks for the report.

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

Labels

None yet

Projects

None yet

3 participants