public void AfterScenario() { if (ScenarioContext.Current.TestError != null) { _screenshotHelper.TakeScreenshot(_driver); } _driver?.Quit(); DriverHolder.Utilize(); }
private Runner(DriverHolder driver) { _driver = driver; }
public static IRunnerSetupInitializer Create(DriverHolder driver) { return new Runner(driver); }
public void BeforeScenario() { _driver = BrowserFactory.LocalDriver(_browser); _driver.Manage().Window.Maximize(); DriverHolder.Intitialize(_driver, TimeSpan.FromSeconds(int.Parse(ConfigManager.WaitTime))); }
protected virtual void SetUp() { Driver = new DriverHolder(); }
protected PageElement(DriverHolder driver) { Driver = driver; }