-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Conditionally enable driver service process output redirection #16353
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
[dotnet] Conditionally enable driver service process output redirection #16353
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||
|
Merging this important update because nobody will review it. Thanks Nikolay. |
User description
🔗 Related Issues
Related to #16245
💥 What does this PR do?
Introduces new hidden flag whether process output should be listened to. By default we just redirect but not listen it. In case of Firefox driver, if
LogPathproperty is set, then we start process redirection with listening to output.🔄 Types of changes
PR Type
Bug fix
Description
Conditionally enable driver service process output redirection
Add
EnableProcessRedirectionproperty to control output listeningFirefox driver enables redirection only when
LogPathis setRemove default logging behavior from base class
Diagram Walkthrough
File Walkthrough
DriverService.cs
Add conditional process output redirection controldotnet/src/webdriver/DriverService.cs
EnableProcessRedirectionvirtual property with default false valueOnDriverProcessDataReceivedmethodFirefoxDriverService.cs
Enable redirection when LogPath configureddotnet/src/webdriver/Firefox/FirefoxDriverService.cs
EnableProcessRedirectionto return true whenLogPathis set