From 48038bd194e491a4d8efa22b95d3e1025e0875e1 Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Fri, 24 May 2019 15:39:52 -0700 Subject: [PATCH] Write line to context instead of console --- src/CalculatorUITestFramework/WinAppDriver.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CalculatorUITestFramework/WinAppDriver.cs b/src/CalculatorUITestFramework/WinAppDriver.cs index 46b9b860..68181e89 100644 --- a/src/CalculatorUITestFramework/WinAppDriver.cs +++ b/src/CalculatorUITestFramework/WinAppDriver.cs @@ -40,9 +40,10 @@ namespace CalculatorUITestFramework this.windowsDriverService.OutputDataReceived += new DataReceivedEventHandler((sender, e) => { - if (!String.IsNullOrEmpty(e.Data)) + var outputData = e.Data?.Replace("\0", string.Empty); + if (!String.IsNullOrEmpty(outputData)) { - Console.WriteLine(e.Data); + context.WriteLine(outputData); } });