예제 #1
0
        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");
        }
예제 #2
0
        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");
        }
예제 #3
0
        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");
        }
예제 #4
0
        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.");
        }
예제 #5
0
        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");
        }
예제 #6
0
        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");
        }