Skip to content

Commit

Permalink
Fix DriversPath & UsePrivateMode Default Values
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelRodriguez8008 committed Jan 26, 2020
1 parent e8d78bc commit 633761e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Microsoft.Dynamics365.UIAutomation.Sample/TestSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 633761e

Please sign in to comment.