diff --git a/src/canopy/canopy.fs b/src/canopy/canopy.fs index 971a9052..e973de58 100644 --- a/src/canopy/canopy.fs +++ b/src/canopy/canopy.fs @@ -835,7 +835,8 @@ let start b = | EdgeBETA -> new Edge.EdgeDriver(edgeDriverService ()) :> IWebDriver | Chrome -> let options = Chrome.ChromeOptions() - options.AddArguments("--disable-extensions") + options.AddArgument("--disable-extensions") + options.AddArgument("disable-infobars") options.AddArgument("test-type") //https://code.google.com/p/chromedriver/issues/detail?id=799 new Chrome.ChromeDriver(chromeDriverService (), options) :> IWebDriver | ChromeWithOptions options -> @@ -846,7 +847,8 @@ let start b = new Chrome.ChromeDriver(chromeDriverService (), options, timeSpan) :> IWebDriver | Chromium -> let options = Chrome.ChromeOptions() - options.AddArguments("--disable-extensions") + options.AddArgument("--disable-extensions") + options.AddArgument("disable-infobars") options.AddArgument("test-type") //https://code.google.com/p/chromedriver/issues/detail?id=799 new Chrome.ChromeDriver(chromeDriverService (), options) :> IWebDriver | ChromiumWithOptions options -> diff --git a/src/canopy/reporters.fs b/src/canopy/reporters.fs index 74511f45..c3fcbe03 100644 --- a/src/canopy/reporters.fs +++ b/src/canopy/reporters.fs @@ -194,8 +194,9 @@ type LiveHtmlReporter(browser : BrowserStartMode, driverPath : string, ?pinBrows | EdgeBETA -> new Edge.EdgeDriver(driverPath) :> IWebDriver | Chrome | Chromium -> let options = Chrome.ChromeOptions() - options.AddArgument("test-type") //https://code.google.com/p/chromedriver/issues/detail?id=799 options.AddArguments("--disable-extensions") + options.AddArgument("disable-infobars") + options.AddArgument("test-type") //https://code.google.com/p/chromedriver/issues/detail?id=799 new Chrome.ChromeDriver(driverPath, options) :> IWebDriver | ChromeWithOptions options -> new Chrome.ChromeDriver(driverPath, options) :> IWebDriver | ChromeWithOptionsAndTimeSpan(options, timeSpan) -> new Chrome.ChromeDriver(driverPath, options, timeSpan) :> IWebDriver