-
-
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
FirefoxDriverService ProcessId property getting cleared when creating a FirefoxDriver #8074
Comments
@jordanm-mel Given that |
The reason I raise it with the .NET bindings is because at first the service has all of the correct properties (leading me to believe that This then replaces the value of |
Okay, I’ve looked at your repro case, and you’re using Yes, there’s a bug here, but given the intended use cases, I’m not sure we’ve fully considered all of the potential ramifications of implementing the fix you propose. You’re welcome to submit a PR, but in the interest of transparency, reviewing and merging it will not be a priority for me due to other commitments at this time. In the meantime, don’t manually call the |
@jimevans created a PR. Turns out this issue has already been fixed in the Java bindings (null check, so I'm pretty confident that this shouldn't introduce any unintended effects) Understandable about your priorities. Not fussed if this one waits a while (since a pretty simple workaround exists, as you have pointed out) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
The ProcessId of a FirefoxDriverService is getting replaced with 0 after creating a FirefoxDriver using the service.
From my investigation, this appears to be caused by
DriverService.IsRunning
.this.driverServiceProcess.HasExited
begins returningtrue
as soon as the FirefoxDriver is created despite the geckodriver process being alive.IsRunning
therefore returns false, so ProcessId returns 0.It's worth noting that I have seen this occur on both .NET Core 2.2 and 3.1 (the repro project)
To Reproduce
Effectively,
FirefoxDriverService
FirefoxDriver
ProcessId
property on theFirefoxDriverService
Expected behavior
The FirefoxDriverService ProcessId should not change as long as the geckodriver is running.
Test script or set of commands reproducing this issue
Repo: https://github.com/jordanm-mel/process-id-bug-repro
Environment
OS: Windows 10
Browser: Firefox
Browser version: 72.0.2
Browser Driver version: GeckoDriver 0.26.0
Language Bindings version: C# 3.141.0
Selenium Grid version (if applicable): N/A
The text was updated successfully, but these errors were encountered: