public void TeardownTest() { // Loggoff Assert.AreEqual("", verificationErrors.ToString()); ui.WaitForElement(By.LinkText("Logoff")); driver.FindElement(By.LinkText("Logoff")).Click(); try { driver.Quit(); } catch (Exception) { // Ignore errors if unable to close the browser } }
public void SeActivity_unauth_page_load() { //Arrange //Act ui.activityMenuLink(); //Find Activity menu link and click //Assert // look for activityList var activityList = ui.WaitForElement(By.CssSelector("#activityList")); Assert.IsNotNull(activityList, "Failed to find #activityList"); // look for activityTable var activityTable = ui.WaitForElement(By.CssSelector("#activityTable")); Assert.IsNotNull(activityTable, "Failed to find #activityTable"); }
public void TeardownTest() { //Logon //ui.login(); //Logoff Assert.AreEqual("", verificationErrors.ToString()); ui.WaitForElement(By.LinkText("Logoff")); driver.FindElement(By.LinkText("Logoff")).Click(); try { driver.Quit(); } catch (Exception) { //ignoring errors if we can't close the browser. } }