public void VerifyDfafts()
        {
            HomeMailPage homeMailPage = new HomeMailPage(driver);
            MailPage     mailPage     = homeMailPage.OpenCreateMailPage();

            mailPage.CreateMail(ADRESS, SUBJECT, BODY);
            homeMailPage.SaveDraft();
            homeMailPage.OpenDraftsFolder();
            Assert.True(isElementPresent(By.XPath(MailPage.DraftXPAth)), "Draft was not found in Drafts folder!");
        }
Exemple #2
0
        public void VerifyDfafts()
        {
            MailPage mailPage = homeMailPage.OpenCreateMailPage();

            mailPage.CreateMail(ADRESS, SUBJECT, BODY);
            homeMailPage.SaveDraft();
            wait(d => d.FindElement(By.CssSelector("[data-mnemo=saveStatus]")).Text.Contains("Сохранено в"));
            homeMailPage.OpenDraftsFolder();
            wait(d => d.Title.Contains("Черновики"));
            Assert.True(isElementPresent(By.XPath(MailPage.DraftXPAth)), "Draft was not found in Drafts folder!");
        }
Exemple #3
0
        public void VerifyDfafts()
        {
//            if (driver.Title != "Входящие - Почта Mail.Ru")
//            {
//                loginPage.OpenUrl();
//                loginPage.SignIn(LOGIN, PASS);
//            }
            MailPage mailPage = homeMailPage.OpenCreateMailPage();

            mailPage.CreateMail(ADRESS, SUBJECT, BODY);
            homeMailPage.SaveDraft();
            wait(d => d.FindElement(By.CssSelector("[data-mnemo=saveStatus]")).Text.Contains("Сохранено в"));
            homeMailPage.OpenDraftsFolder();
            wait(d => d.Title.Contains("Черновики"));
            Assert.True(isElementPresent(By.XPath(MailPage.DraftXPAth)), "Draft was not found in Drafts folder!");
        }