public ContactUsPage NavigateToContactUs() { MenuPage menuPage = new MenuPage(); ContactUsPage contactUsPage = menuPage.ClickContactUs(); return(contactUsPage); }
public ContactUsPage NavigateContactUs() { MenuPage menuPagine = new MenuPage(webDriver); ContactUsPage contactUsPage = menuPagine.ClickContactUs(); return(contactUsPage); }
public ContactUs NavigationToContacUs() { NavigateToInitialSite(); MenuPage menuPage = new MenuPage(); menuPage.ClickContactUs(); ContactUs contactUs = new ContactUs(); return(contactUs); }
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); }
public ContactUsPage NavigateToContactUs() { MenuPage menuPage = new MenuPage(webDriver); ContactUsPage contactUsPage = menuPage.ClickContactUs(); return contactUsPage; }