Exemplo n.º 1
0
        public void MainGmailTest()
        {
            LoginPage page = new LoginPage();
            MailBoxPage page2 = page.LoginToGmail(Username, Userpass);
            Assert.That(driver.Url.Equals("https://mail.google.com/mail/#inbox"), "Log in failed");

            string to = Username+"@gmail.com";
            string subj = "Test subject " + Random;
            string body = "Test mail body text: " + Random;
            page2.CreateNewMail(to, subj, body);
            page2.CheckDraft(to, subj, body);
            page2.SendMailAndCheck(subj);
            page2.LogOut();
        }