Ejemplo n.º 1
0
        public void Test3()
        {
            TUT_BY_page tut_by_page = new TUT_BY_page(driver);
            Email_page  email_page  = new Email_page(driver, wait);

            tut_by_page.ClickOnLogginButton();
            tut_by_page.WriteLogin();
            tut_by_page.WritePassword();
            tut_by_page.ClickOnEnterButton();
            tut_by_page.ClickOnNameButton();
            tut_by_page.ClickOnMailButton();

            email_page.SwitchToEmailPage();
            email_page.WaitEmailPage();
            email_page.ClickOnWriteButton();
            email_page.WaitMySelfButton();
            email_page.ClickOnMyselfButton();
            email_page.WriteTopic();
            email_page.WriteMessage();
            email_page.ClickOnSendButton();

            email_page.WaitToRefresh();

            email_page.ClickOnRefreshButton();
            email_page.ClickOnRefreshButton();

            email_page.WaitMessageTopic();

            string topic_text = email_page.GetMessageTopic();


            if (topic_text == currentTime.ToString("h:mm:ss tt"))
            {
                Assert.Pass();
            }
        }
Ejemplo n.º 2
0
        public void TestU()
        {
            TUT_BY_page elements = new TUT_BY_page(driver);

            elements.searhField.SendKeys("Test");
        }