Пример #1
0
        public void MarkLetterAsSpam(string subject)
        {
            UserMailPage UserMailPage = new UserMailPage(driver);

            UserMailPage.SelectMessageBySubject(subject);
            UserMailPage.PutMessageToSpam();
        }
Пример #2
0
        public void ConfirmForwardingFrom(string login)
        {
            UserMailPage UserMailPage = new UserMailPage(driver);

            UserMailPage.SelectMessageBySubject(login);
            UserMailPage.ConfirmForwarding();
            UserMailPage.LogOut();
        }
Пример #3
0
        public bool CheckSpamFolder(string subject)
        {
            UserMailPage UserMailPage = new UserMailPage(driver);

            UserMailPage.ToSpamFolder();
            bool result = UserMailPage.SelectMessageBySubject(subject);

            return(result);
        }
Пример #4
0
        public void EndoOfSettingForwarding()
        {
            UserMailPage        UserMailPage        = new UserMailPage(driver);
            SettingsMenu        SettingsMenu        = new SettingsMenu(driver);
            ForwardSettingsPage forwardSettingsPage = new ForwardSettingsPage(driver);

            UserMailPage.Open();
            UserMailPage.GetSettingsMenu();
            SettingsMenu.GoToForwardingSettings();
            forwardSettingsPage.SetForwardCopyTo();
        }
Пример #5
0
        public void LoginAsUser(string login, string password)
        {
            StartPage StartPage = new StartPage(driver);

            StartPage.Open();
            SignInPage SignInPage = new SignInPage(driver);

            SignInPage.Open();
            SignInPage.LogIn(login, password);
            UserMailPage UserMailPage = new UserMailPage(driver);

            UserMailPage.Open();
        }
Пример #6
0
        public void CreateNewFilter(Filter filter)
        {
            UserMailPage UserMailPage = new UserMailPage(driver);

            UserMailPage.Open();
            UserMailPage.GetSettingsMenu();
            SettingsMenu SettingsMenu = new SettingsMenu(driver);

            SettingsMenu.GoToFilterSettings();
            FiltersSettingsPage filterSettingsPage = new FiltersSettingsPage(driver);

            filterSettingsPage.CreateNewFilter(filter);
        }
Пример #7
0
        //=========================================================

        public void SetForwardingToUser(string login)
        {
            UserMailPage UserMailPage = new UserMailPage(driver);

            UserMailPage.Open();
            //Go to settings menu
            UserMailPage.GetSettingsMenu();

            SettingsMenu SettingsMenu = new SettingsMenu(driver);

            //Go to forwarding settings and set forward to user3
            SettingsMenu.GoToForwardingSettings();
            ForwardSettingsPage forwardSettingsPage = new ForwardSettingsPage(driver);

            forwardSettingsPage.SetForwardUser(login);
            UserMailPage.Open();
            UserMailPage.LogOut();
        }
Пример #8
0
        public void LogOut()
        {
            UserMailPage UserMailPage = new UserMailPage(driver);

            UserMailPage.LogOut();
        }
Пример #9
0
        public void SendMessage(Message message)
        {
            UserMailPage UserMailPage = new UserMailPage(driver);

            UserMailPage.SendMessage(message);
        }