Ejemplo n.º 1
0
        public void SubmitForm()
        {
            // Arrange
            HomePage         homePage         = new HomePage(Driver);
            PracticeFormPage practiceFormPage = new PracticeFormPage(Driver);

            homePage.ClickOnFormButton();

            //Act
            practiceFormPage.EnterFirstName("Dan");
            practiceFormPage.EnterLastName("Popa");
            practiceFormPage.EnterEmail("*****@*****.**");
            practiceFormPage.ClickOnMaleRadioButton();
            practiceFormPage.EnderPhoneNumber("0123654879");
            //practiceFormPage.SelectDateOfBirth();
            practiceFormPage.EnterSubject("Math");
            practiceFormPage.SelectHobbies();
            //practiceFormPage.UploadPicture();
            practiceFormPage.EnterAddress("asfdklgnsfdkn sdgertg");
            practiceFormPage.SelectStateFromDropDown("NCR");
            practiceFormPage.SelectCityFromDropDown("Delhi");
            practiceFormPage.SubmitAction();


            //Assert
            Assert.IsTrue(practiceFormPage.VerifyElementIsDisplayed(practiceFormPage.ConfirmationThatFormWasSubmmited));
        }