Пример #1
0
 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();
 }
Пример #3
0
 public void AfterScenario()
 {
     _driver?.Quit();
 }
Пример #4
0
 public void close_driver()
 {
     _driver.Quit();
 }
Пример #5
0
 public void CleanUp()
 {
     driver.Quit();
 }
Пример #6
0
 public void TestTearDown()
 {
     Driver.Close();
     Driver.Quit();
 }