public void CloseBroser() { driver.Close(); driver.Quit(); driver.Dispose(); driver = null; }
public virtual void ScenarioTearDown() { try { ((Unickq.SpecFlow.Selenium.WebDriverGrid.PaidWebDriver)driver).UpdateTestResult(); } catch (System.Exception) {} try { System.Threading.Thread.Sleep(50); driver.Quit(); } catch (System.Exception) {} driver = null; try { testRunner.ScenarioContext.Remove("Driver"); } catch (System.NullReferenceException) {} testRunner.OnScenarioEnd(); }
public void AfterScenario() { _driver?.Quit(); }
public void close_driver() { _driver.Quit(); }
public void CleanUp() { driver.Quit(); }
public void TestTearDown() { Driver.Close(); Driver.Quit(); }