You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before running a unit test, we must run WinAppriver.exe. While the test executes the log messages of the Selenium api calls gets logged to the console window of WinAppDriver.exe.
I am attempting to programmatically launch WinAppDriver.exe and have the logs of Selenium api calls logged to a log file. I am using Serilog to log.
In the log files, I see garbage characters like
I have tried to use StartInfo.StandardOutputEncoding and set it to System.Text.Encoding.UTF8. I have also tried to set OutputEncoding to several other values like Encoding.Default and Encoding.GetEncoding(CultureInfo.CurrentCulture.TextInfo.OEMCodePage).
Based on my research this looks like an encoding issue but I am unclear about how to proceed.
What am I missing? Is it possible to do what I am attempting to do? I will appreciate any inputs or guidance. Thanks.
Before running a unit test, we must run WinAppriver.exe. While the test executes the log messages of the Selenium api calls gets logged to the console window of WinAppDriver.exe.![image](https://user-images.githubusercontent.com/35124383/83080813-d2053b80-a044-11ea-84e3-43c989fe0103.png)
I am attempting to programmatically launch WinAppDriver.exe and have the logs of Selenium api calls logged to a log file. I am using Serilog to log.
In the log files, I see garbage characters like
I have tried to use
StartInfo.StandardOutputEncoding
and set it toSystem.Text.Encoding.UTF8
. I have also tried to set OutputEncoding to several other values likeEncoding.Default
andEncoding.GetEncoding(CultureInfo.CurrentCulture.TextInfo.OEMCodePage)
.Based on my research this looks like an encoding issue but I am unclear about how to proceed.
What am I missing? Is it possible to do what I am attempting to do? I will appreciate any inputs or guidance. Thanks.
I am implementing the process like below:
The text was updated successfully, but these errors were encountered: