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."); }