public void FillContactFormWithOutMessage() { var contactPage = new ContactFormPage(this.driver); User user = AccessExcelData.GetUserTestData("FillContactFormWithOutMessage"); contactPage.NavigateTo(); contactPage.FillContactForm(user); contactPage.AssertMessageErrorMessage("Please enter your message"); }
public void FillContactFormWithOutSubCategorySelected() { var contactPage = new ContactFormPage(this.driver); User user = AccessExcelData.GetUserTestData("FillContactFormWithOutSubCategorySelected"); contactPage.NavigateTo(); contactPage.FillContactForm(user); contactPage.AssertSubCategoryErrorMessage("Please select your sub-category"); }
public void FillContactFormWithOutProductSelected() { var contactPage = new ContactFormPage(this.driver); User user = AccessExcelData.GetUserTestData("FillContactFormWithOutProductSelected"); contactPage.NavigateTo(); contactPage.FillContactForm(user); contactPage.AssertProductErrorMessage("Please select a product type"); }
public void FillContactFormInvalidFileFormat() { var contactPage = new ContactFormPage(this.driver); User user = AccessExcelData.GetUserTestData("FillContactFormInvalidFileFormat"); contactPage.NavigateTo(); contactPage.FillContactForm(user); contactPage.AssertInvalidFileFormatErrorMessage("Unable to upload the file. Only Jpeg, jpg, doc, docx, pdf, txt, png files supported."); }
public void FillContactFormWithInvalidEmail() { var contactPage = new ContactFormPage(this.driver); User user = AccessExcelData.GetUserTestData("FillContactFormWithInvalidEmail"); contactPage.NavigateTo(); contactPage.FillContactForm(user); contactPage.AssertInvalidEmailErrorMessage("Please enter a valid e-mail address"); }
public void SuccessfullRegistration() { var contactPage = new ContactFormPage(this.driver); User user = AccessExcelData.GetUserTestData("Successfull registration"); contactPage.NavigateTo(); contactPage.FillContactForm(user); contactPage.SendButton.Click(); contactPage.AssertSuccessMessage("Thank you"); }