/// <summary> /// Closes the connection to the extension. /// </summary> public void Quit() { // This should only be called after the QUIT command has been sent, // so go ahead and clean up our process and profile. process.Quit(); profile.Clean(); }
public void TeardownTest() { try { driver.Quit(); } catch (Exception) { // Ignore errors if unable to close the browser } Assert.AreEqual("", verificationErrors.ToString()); }