/// <summary> /// Try closing the window with exception handling /// </summary> public void Close() { try { selenium.Close(); } catch// (Exception) { ErrorReport("Window could not be closed", CheckType.Warning); } }
public virtual void TeardownTest() { try { webdriver.Close(); } catch (Exception) { // Ignore errors if unable to close the browser } //Assert.AreEqual("", verificationErrors.ToString()); }
public void closeDriver() { driver.Close(); }