public void CloseBroser() { driver.Close(); driver.Quit(); driver.Dispose(); driver = null; }
public void AfterTest() { File.CreateText(_Evidence.GenerateTxtLogPath(_testContext.CurrentTestOutcome.ToString(), _Scenario_Name, _UserStory)); switch (navegador) { case BrowserType.InternetExplorer: browser.Close(); //Reporter.GenerateReport(); SDK.Cleanup(); break; case BrowserType.Chrome: if (driver == null) { return; } driver.Close(); driver = null; break; } }
/// <summary> /// Handles the command. /// </summary> /// <param name="driver">The driver used to execute the command.</param> /// <param name="locator">The first parameter to the command.</param> /// <param name="value">The second parameter to the command.</param> /// <returns>The result of the command.</returns> protected override object HandleSeleneseCommand(OpenQA.Selenium.IWebDriver driver, string locator, string value) { driver.Close(); return(null); }
public void TestTearDown() { Driver.Close(); Driver.Quit(); }
public static void CloseBrowser() { driver.Close(); }