Skip to content
Permalink
Browse files

Update for providing Chrome Headless support

  • Loading branch information
darent darent
darent authored and darent committed Feb 2, 2018
1 parent 6cf75e6 commit e34b5cae67393f7cc789313fd60536ae326f4fdb
Showing with 8 additions and 0 deletions.
  1. +8 −0 Microsoft.Dynamics365.UIAutomation.Browser/BrowserOptions.cs
@@ -41,6 +41,10 @@ public BrowserOptions()
public TimeSpan RecordingScanInterval { get; set; }
public string TraceSource { get; set; }
public bool HideDiagnosticWindow { get; set; }
/// <summary>
/// Setting that will run the browser in a headless manner. This setting is only valid for Chrome.
/// </summary>
public bool Headless { get; set; }

public ChromeOptions ToChrome()
{
@@ -55,6 +59,10 @@ public ChromeOptions ToChrome()
{
options.AddArgument("--incognito");
}
if (this.Headless)
{
options.AddArgument("--headless");
}

return options;
}

0 comments on commit e34b5ca

Please sign in to comment.
You can’t perform that action at this time.