예제 #1
0
        static void Main(string[] args)
        {
            LoginPageSteps   loginPage   = new LoginPageSteps();
            LogoutPageSteps  logoutPage  = new LogoutPageSteps();
            MainPageSteps    mainPage    = new MainPageSteps();
            ThemesPageSteps  themePage   = new ThemesPageSteps();
            SettingPageSteps settPage    = new SettingPageSteps();
            MailBoxPageSteps mailPage    = new MailBoxPageSteps();
            LetterPageSteps  letterPage  = new LetterPageSteps();
            StarredPageSteps starredPage = new StarredPageSteps();
            SpamPageSteps    spamPage    = new SpamPageSteps();

            //MailBoxPageSteps mailPage = new MailBoxPageSteps();
            //StarredPageSteps starredPage = new StarredPageSteps();
            loginPage.Open();
            loginPage.Authorize(D.user2, D.password);
            mailPage.WriteMessage(D.user3, "For starred", "XO");
            logoutPage.CommonExit();
            loginPage.Authorize(D.user3, D.password);
            Console.WriteLine(mainPage.CheckIfItIsStarred());
            mainPage.GoToStarred();
            Console.WriteLine(starredPage.CheckIfItIsStarredPage("https://mail.google.com/mail/u/0/#starred"));
            Console.WriteLine(starredPage.CheckTheTopic("For starred"));
            Console.ReadLine();
        }
예제 #2
0
        public void CheckStarredAndNotStarredFunction()
        {
            MailBoxPageSteps mailPage    = new MailBoxPageSteps();
            StarredPageSteps starredPage = new StarredPageSteps();

            loginPage.Authorize(Data.user2, Data.password);
            mailPage.WriteMessage(Data.user3, "For starred", "XO");
            logoutPage.CommonExit();
            loginPage.Authorize(Data.user3, Data.password);
            Assert.True(mainPage.CheckIfItIsStarred());
            mainPage.GoToStarred();
            Assert.True(starredPage.CheckIfItIsStarredPage("https://mail.google.com/mail/u/0/#starred"));
            Assert.True(starredPage.CheckTheTopic("For starred"));
        }