示例#1
0
        public void SendMailTest()
        {
            BeforeTest();

            loginPage.Home();
            loginPage.Login(userName, password);

            mailbox = new MailboxPage(driver, config);
            mailbox.Compose();

            compose = new ComposeMailPage(driver, config);
            compose.ComposeMessage(recipient, subject, message);
            compose.Send();

            mailbox.Home();
            mailbox.WaitMessage(subject);

            AfterTest();
        }
示例#2
0
        public void SendMailTest()
        {
            BeforeTest();

            this.loginPage.Home();
            this.loginPage.Login(this.userName, this.password);

            this.mailbox = new MailboxPage(this.driver, this.config);
            this.mailbox.Compose();

            this.compose = new ComposeMailPage(this.driver, this.config);
            this.compose.To(this.recipient);
            this.compose.Subject(this.subject);
            this.compose.Message(this.message);
            this.compose.Send();

            this.mailbox.WaitMessage(this.subject);

            AfterTest();
        }