Пример #1
0
        public void ContactUsTest()
        {
            HomePage      homePage      = new HomePage(driver, wait);
            ContactUsPage contactUsPage = new ContactUsPage(driver);

            homePage.GoToScreen();
            homePage.ClickContactUs();

            contactUsPage.Fillform("*****@*****.**", "1012252", "this is a test for automation");
            Assert.AreEqual("Your message has been successfully sent to our team.", contactUsPage.GetSuccessMsg());
        }
        [TestMethod] //Donde hacemos el paso a paso que está indicado en el testcase
        public void ContactUs()
        {
            HomePage      homePage      = new HomePage(driver);
            ContactUsPage contactUsPage = new ContactUsPage(driver);

            homePage.GoToPage();
            homePage.ClickOnContactLink();

            contactUsPage.Fillform("*****@*****.**", "1012252", "this is a test for automation");
            Assert.AreEqual("Your message has been successfully sent to our team.", contactUsPage.GetSuccessMsg());
        }