Esempio n. 1
0
        public void EmailsExchange()
        {
            var login = new Login();

            login.LogIn(driver, wait, "test_auto2020", "Training1919", "https://mail.ru/");
            var writeNewMail = new WriteNewMail();

            writeNewMail.WriteEmail(wait);
            var checkincomeletter = new CheckIncomeLetter();

            checkincomeletter.LogIn2(driver, wait, "secondmail20", "Training2020", "https://mail.ru/");
            var responseEmail = new ResponseEmail();

            responseEmail.ResponseLetter(wait);
            var login2 = new Login();

            login.LogIn(driver, wait, "test_auto2020", "Training1919", "https://mail.ru/");
            var checkFinalMail = new CheckFinalMail();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var login = new Login();
            //var newMailChecker = new NewMailChecker();
            IWebDriver    driver            = new ChromeDriver();
            WebDriverWait wait              = new WebDriverWait(driver, TimeSpan.FromSeconds(130));
            var           writeNewMail      = new WriteNewMail();
            var           checkincomeletter = new CheckIncomeLetter();
            var           responseEmail     = new ResponseEmail();
            var           checkFinalMail    = new CheckFinalMail();

            login.LogIn(driver, wait, "test_auto2020", "Training1919", "https://mail.ru/");
            writeNewMail.WriteEmail(wait);

            checkincomeletter.LogIn2(driver, wait, "secondmail20", "Training2020", "https://mail.ru/");
            responseEmail.ResponseLetter(wait);
            login.LogIn(driver, wait, "test_auto2020", "Training1919", "https://mail.ru/");
            checkFinalMail.LastMailCheck(driver, wait);
        }