From 633761eed974f0336c835779524d4b591abdef6b Mon Sep 17 00:00:00 2001 From: "Angel A. Rodriguez" Date: Mon, 27 Jan 2020 00:49:28 +0100 Subject: [PATCH] Fix DriversPath & UsePrivateMode Default Values --- Microsoft.Dynamics365.UIAutomation.Sample/TestSettings.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Microsoft.Dynamics365.UIAutomation.Sample/TestSettings.cs b/Microsoft.Dynamics365.UIAutomation.Sample/TestSettings.cs index 54da41d1..4c35b0bd 100644 --- a/Microsoft.Dynamics365.UIAutomation.Sample/TestSettings.cs +++ b/Microsoft.Dynamics365.UIAutomation.Sample/TestSettings.cs @@ -18,13 +18,13 @@ public static class TestSettings private static readonly string Type = ConfigurationManager.AppSettings["BrowserType"]; private static readonly string RemoteType = ConfigurationManager.AppSettings["RemoteBrowserType"]; private static readonly string RemoteHubServerURL = ConfigurationManager.AppSettings["RemoteHubServer"]; - private static readonly string DriversPath = ConfigurationManager.AppSettings["DriversPath"]; - private static readonly bool? UsePrivateMode = Convert.ToBoolean(ConfigurationManager.AppSettings["UsePrivateMode"]); + private static readonly string DriversPath = ConfigurationManager.AppSettings["DriversPath"] ?? string.Empty; + private static readonly bool UsePrivateMode = Convert.ToBoolean(ConfigurationManager.AppSettings["UsePrivateMode"] ?? "true"); public static BrowserOptions Options = new BrowserOptions { BrowserType = (BrowserType)Enum.Parse(typeof(BrowserType), Type), - PrivateMode = UsePrivateMode ?? true, + PrivateMode = UsePrivateMode, FireEvents = false, Headless = false, UserAgent = false,