コード例 #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);
        }