public static void DeleteAllMail()
        {
            Thread.Sleep(5000);
            ImportantPage tp = new ImportantPage();

            tp.SelectAllMail();
            tp.ButtonDelete.Click();
        }
Exemple #2
0
        public static bool IsMessageMarkedAsImportant(string email, string subject)
        {
            ImportantPage page = new ImportantPage();

            GoToImportantFolder();
            page.WaitForPageToLoad();
            return(page.IsMessageExists(email, subject, 7));
        }
Exemple #3
0
        public void TestMethod3()
        {
            EnterPage.GoToInboxFolder();
            for (int i = 0; i < TestConfiguration.NumberOfMailsToCheck; i++)
            {
                InboxPage.MarkCheckbox(i);
            }
            InboxPage.MarkAsImportant();
            EnterPage.ClickMoreButton();
            EnterPage.GoToImportantFolder();

            Assert.IsTrue(ImportantPage.CheckCount(TestConfiguration.NumberOfMailsToCheck));

            for (int i = 0; i < TestConfiguration.NumberOfMailsToCheck; i++)
            {
                ImportantPage.MarkCheckbox(i);
            }
            ImportantPage.ClickDeleteButton();
            EnterPage.GoToTrashFolder();

            Assert.IsTrue(BinPage.CheckCount(TestConfiguration.NumberOfMailsToCheck));
        }
        public static bool CheckLetterInImportant(string email, string str1, string str2)
        {
            ImportantPage im = new ImportantPage();

            return(im.CheckLetter(email, str1, str2));
        }
Exemple #5
0
 public ImportantPageBO(IWebDriver driver)
 {
     ImportantPage = new ImportantPage(driver);
 }