Beispiel #1
0
        public void LoginToGmailAndSendNewEmailTest()
        {
            LoginPage gmailLoginPage = new LoginPage();

            gmailLoginPage.OpenPageUrl();
            gmailLoginPage.LoginToMailbox("*****@*****.**", "mikeqwerty123");

            InboxPage gmailInboxPage = new InboxPage();

            gmailInboxPage.SendNewEmail("*****@*****.**", "Hello Desktop Automation Course", "This mail was generated by C# code");
            //gmailInboxPage.SendNewEmail("*****@*****.**", "Hello Desktop Automation Course", "This mail was generated by C# code");
            //gmailInboxPage.SendNewEmail("[email protected] [email protected]", "Hello Desktop Automation Course", "This mail was generated by C# code");
            gmailInboxPage.GoToSentMailSection();

            SentMailPage sentMailPage = new SentMailPage();

            Assert.AreEqual("Hello Desktop Automation Course", sentMailPage.getSubjectOflastSentEmail());
        }