public static void Setup() { var options = new FirefoxOptions { PageLoadStrategy = PageLoadStrategy.Default }; CurrentBrowser = Browser.Firefox; TestDriver = new SeleniumDemoWebDriver(CurrentBrowser, options); TestDriver.Manage().Window.Size = new Size(1280, 768); TestDriver.Manage().Window.Position = new Point(0, 0); Waiter.BrowserUpdate = 2000; SetupTestOutputFolder(); Directory.SetCurrentDirectory(TestOutputFolder); }
public static void Setup(TestContext testContext) { var options = new EdgeOptions { PageLoadStrategy = PageLoadStrategy.Default }; CurrentBrowser = Browser.Edge; TestDriver = new SeleniumDemoWebDriver(CurrentBrowser, options); TestDriver.Manage().Window.Maximize(); Directory.SetCurrentDirectory(testContext.TestRunResultsDirectory); Waiter.BrowserUpdate = 2500; }