public void RequestingUnsupportedHeadlessBrowserThrowsInformativeException(Browser browser) { IWebDriverConfiguration configuration = WebDriverConfigurationBuilder.Start() .WithBrowser(browser) .RunHeadless() .Build(); void Act() => WebDriverFactory.GetWebDriver(configuration); Assertions.AssertThatRequestingAnUnsupportedHeadlessBrowserThrowsCorrectException(Act, browser); }
public void RequestingUnsupportedHeadlessBrowserThrowsInformativeException(Browser browser) { Assertions.AssertThatRequestingAnUnsupportedHeadlessBrowserThrowsCorrectException(Act, browser); void Act() => LocalWebDriverFactory.GetWebDriver(browser, WindowSize.Hd, true); }