public void oneCanSendEmail() { LoginToEmail loginToEmail = new LoginToEmail(driver); loginToEmail.canLoginEmail(); loginToEmail.canCreateEmail(); loginToEmail.canSendEmail(); Assert.Throws <NoSuchElementException>(() => loginToEmail.findSentEmailInDrafts()); driver.Close(); }
public void sentEmailVerification() { LoginToEmail loginToEmail = new LoginToEmail(driver); loginToEmail.canLoginEmail(); loginToEmail.canCreateEmail(); loginToEmail.canSendEmail(); loginToEmail.findSentEmailInSent(); //this is a check to see if a draft is in 'Sent' folder new WebDriverWait(driver, TimeSpan.FromSeconds(3)).Until(ExpectedConditions.ElementExists((By.XPath("//div[(text()='*****@*****.**')]")))); driver.Close(); }