public void SuccessfulRegistration() { registrationPage.OpenRegistrationPage(); registrationPage.EnterFirstName("Lilly"); registrationPage.EnterLastName("Lillic"); registrationPage.ChooseMaritalStatus("divorced"); registrationPage.ChooseHobby("reading"); registrationPage.SelectCountry.SelectByText("Barbados"); registrationPage.SelectBirthMonth.SelectByText("5"); registrationPage.SelectBirthDay.SelectByValue("24"); registrationPage.SelectBirthYear.SelectByValue("1975"); registrationPage.EnterPhoneNumber("44075123456"); registrationPage.EnterUsername(); registrationPage.EnterEmail("*****@*****.**"); registrationPage.EnterPassword("lilly123"); registrationPage.ConfirmPassword("lilly123"); registrationPage.SubmitRegistrationForm(); WebElementChecks.ShouldBeDisplayed(By.ClassName("piereg_message")); }
public void CheckMenuPageLoaded() { WebElementChecks.ShouldBeDisplayed(By.ClassName("page-id-43")); Assert.AreEqual("http://demoqa.com/menu/", driver.Url); }
public void CheckRegistrationPageLoaded() { WebElementChecks.ShouldBeDisplayed(By.ClassName("page-id-49")); Assert.AreEqual("http://demoqa.com/registration/", driver.Url); }
public void RequiredFieldErrorMessageShouldBEDisplayed(By by) { IWebElement errormessage = WebElementChecks.ShouldBeDisplayed(by); Assert.AreEqual("* This field is required", errormessage.Text); }