public ContactUsPage NavigateToContactUs()
        {
            MenuPage      menuPage      = new MenuPage();
            ContactUsPage contactUsPage = menuPage.ClickContactUs();

            return(contactUsPage);
        }
Exemple #2
0
        public ContactUsPage NavigateContactUs()
        {
            MenuPage      menuPagine    = new MenuPage(webDriver);
            ContactUsPage contactUsPage = menuPagine.ClickContactUs();

            return(contactUsPage);
        }
Exemple #3
0
        public ContactUs NavigationToContacUs()
        {
            NavigateToInitialSite();
            MenuPage menuPage = new MenuPage();

            menuPage.ClickContactUs();
            ContactUs contactUs = new ContactUs();

            return(contactUs);
        }
Exemple #4
0
        public void MyFirstTest()
        {
            //navigate to automationpractice
            webDriver.Navigate().GoToUrl("http://automationpractice.com/index.php");

            MenuPage menuPage = new MenuPage(webDriver);

            menuPage.ClickContactUs();

            ContactUsPage contactUsPage = new ContactUsPage(webDriver);

            contactUsPage.FillContactUsForm(ContactUsPage.Options.ByText, "Customer service", "*****@*****.**", "1234", @"C:\txt.txt", "test message");
            string actualMessage   = contactUsPage.GetConfirmationMessage();
            string expectedMessage = "Your message has been successfully sent to our team."; //expected

            Assert.AreEqual(expectedMessage, actualMessage);
        }
Exemple #5
0
 public ContactUsPage NavigateToContactUs()
 {
     MenuPage menuPage = new MenuPage(webDriver);
     ContactUsPage contactUsPage = menuPage.ClickContactUs();
     return contactUsPage;
 }