コード例 #1
0
        public void oneCanSendEmail()
        {
            LoginToEmail loginToEmail = new LoginToEmail(driver);

            loginToEmail.canLoginEmail();
            loginToEmail.canCreateEmail();
            loginToEmail.canSendEmail();

            Assert.Throws <NoSuchElementException>(() => loginToEmail.findSentEmailInDrafts());

            driver.Close();
        }
コード例 #2
0
        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();
        }