-
-
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
LogPath
property 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
EnableProcessRedirection
property to control output listeningFirefox driver enables redirection only when
LogPath
is setRemove default logging behavior from base class
Diagram Walkthrough
File Walkthrough
DriverService.cs
Add conditional process output redirection control
dotnet/src/webdriver/DriverService.cs
EnableProcessRedirection
virtual property with default false valueOnDriverProcessDataReceived
methodFirefoxDriverService.cs
Enable redirection when LogPath configured
dotnet/src/webdriver/Firefox/FirefoxDriverService.cs
EnableProcessRedirection
to return true whenLogPath
is set