public void ContactMePageTest()
        {
            using (var driver = new ChromeDriver())
            {
                driver.Navigate().GoToUrl("http://nitro.duckdns.org/Pets.QA/index.html");
                var contactMenuPage = new ContactMePage(driver);

                contactMenuPage.OpenContactPage();

                contactMenuPage.GeContactPagetHeaderText().ShouldBe("Contact Me");

                contactMenuPage.GetPageText().ShouldContain("If you want");
                contactMenuPage.GetPagePhone().ShouldBe("773-800-9646");
                contactMenuPage.GetPageEmail().ShouldBe("*****@*****.**");
                contactMenuPage.OpenCareRequestPage();
                contactMenuPage.GetCareRequestTitle().ShouldBe("Care Request");
            }
        }
Esempio n. 2
0
        public void ContactMePageTest()
        {
            using (var driver = DriverUtils.CreateWebDriver())
            {
                driver.Navigate().GoToUrl(Config.GetURL());
                var contactMenuPage = new ContactMePage(driver);

                contactMenuPage.OpenContactPage();

                contactMenuPage.GeContactPagetHeaderText().ShouldBe("Contact Me");

                contactMenuPage.GetPageText().ShouldContain("If you want");
                contactMenuPage.GetPagePhone().ShouldBe("773-800-9646");
                contactMenuPage.GetPageEmail().ShouldBe("*****@*****.**");
                contactMenuPage.OpenCareRequestPage();
                contactMenuPage.GetCareRequestTitle().ShouldBe("Care Request");
            }
        }