public void RequestingUnsupportedHeadlessBrowserThrowsInformativeException(BrowserTypes browser) { Action act = () => StaticWebDriverFactory.GetLocalWebDriver(browser, true); act.ShouldThrow <ArgumentException>($"because headless mode is not supported on {browser}.") .Message.ShouldBe($"Headless mode is not currently supported for {browser}."); }
public void Uhd4KBrowserIsOfRequestedSize() { Driver = StaticWebDriverFactory.GetLocalWebDriver(StaticDriverOptionsFactory.GetFirefoxOptions(true), WindowSize.UHD4K); Size size = Driver.Manage().Window.Size; size.ShouldSatisfyAllConditions ( () => size.Height.ShouldBe(2160), () => size.Width.ShouldBe(3840) ); }
public void HdBrowserIsOfRequestedSize() { //Driver = StaticWebDriverFactory.GetLocalWebDriver(StaticDriverOptionsFactory.GetFirefoxOptions(true), WindowSize.HD); Driver = StaticWebDriverFactory.GetLocalWebDriver <FirefoxDriver, FirefoxOptions>(StaticDriverOptionsFactory.GetFirefoxOptions(true)); Size size = Driver.Manage().Window.Size; size.ShouldSatisfyAllConditions ( () => size.Width.ShouldBe(1366), () => size.Height.ShouldBe(768) ); }
public void HeadlessBrowsersCanBeLaunched(BrowserTypes browser) { Driver = StaticWebDriverFactory.GetLocalWebDriver(browser, true); Driver.Url = "https://example.com/"; Driver.Title.ShouldBe("Example Domain"); }
public void LocalWebDriverCanBeLaunchedAndLoadExampleDotCom(BrowserTypes browser) { Driver = StaticWebDriverFactory.GetLocalWebDriver(browser); Driver.Url = "https://example.com/"; Driver.Title.ShouldBe("Example Domain"); }