Esempio n. 1
0
        public void formPageDisplayed()
        {
            pages.FormPage        formPage      = new pages.FormPage(driver);
            helpers.HelperMethods helperMethods = new helpers.HelperMethods();

            // click in Form button
            formPage.clickOnFormButton(driver);

            // check if form page is displayed
            helperMethods.checkFormPageIsDisplayed(driver);
        }
Esempio n. 2
0
        public void homePageDisplayed()
        {
            pages.HomePage        homePage      = new pages.HomePage(driver);
            helpers.HelperMethods helperMethods = new helpers.HelperMethods();

            // click in Home button
            homePage.clickOnHomeButton(driver);

            // check if home page is displayed
            helperMethods.checkHomePageIsDisplayed(driver);
        }
Esempio n. 3
0
        public void formPageDisplayedElements()
        {
            pages.FormPage        formPage      = new pages.FormPage(driver);
            helpers.HelperMethods helperMethods = new helpers.HelperMethods();

            // click in Form button
            formPage.clickOnFormButton(driver);

            // check that input form and submitt button is displayed
            Assert.IsTrue(formPage.getFormInputGroupVisibility(driver));
        }
Esempio n. 4
0
        public void uiTestingClickingEffect()
        {
            pages.UITestingPage   uiTesting     = new pages.UITestingPage(driver);
            helpers.HelperMethods helperMethods = new helpers.HelperMethods();

            // click on Ui testing button
            uiTesting.clickOnUITestingButton(driver);

            // check if Home page is displayed
            helperMethods.checkHomePageIsDisplayed(driver);
        }
Esempio n. 5
0
        public void errorResponseCode()
        {
            pages.ErrorPage       errorPage     = new pages.ErrorPage(driver);
            helpers.HelperMethods helperMethods = new helpers.HelperMethods();

            // click in Error button
            errorPage.clickOnErrorButton(driver);

            // check if 404 is displayed as response code
            Assert.IsTrue(helperMethods.getTextVisiblity(driver, "404"));
        }
Esempio n. 6
0
        //REQ-UI-12
        public void submitForm()
        {
            pages.FormPage        formPage       = new pages.FormPage(driver);
            helpers.HelperMethods helpersMethods = new helpers.HelperMethods();

            //click on Form button
            formPage.clickOnFormButton(driver);

            // check if desired text was sent throught input form
            helpersMethods.checkIfEnterTextIsTheCorrectOne(driver, "Emily");

            // check if the name is dislayed as wanted
            helpersMethods.checkIfCorrectNameIsDisplayed(driver, "Emily");
        }