Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.click()


        ElementInspector submit = element("testForm:fmSubmit");
        submit.click();
        waitForPageToLoad();
        isDefaultPresentation();
        fillValidDataForClientSideAPI();
        submit.click();
        waitForPageToLoad();
        isNotDefaultPresentation();
    }

     @Test
View Full Code Here


        closeBrowser();
        testAppFunctionalPage("/components/validation/clientDefaultPresentation.jsf");
        isNotDefaultPresentation();
        element("testForm:fillInvalidData").click();
        ElementInspector submit = element("testForm:fmSubmit");
        submit.click();
        sleep(1000);
        isDefaultPresentation();
        fillValidDataForClientSideAPI();
        submit.click();
        waitForPageToLoad();
View Full Code Here

        ElementInspector submit = element("testForm:fmSubmit");
        submit.click();
        sleep(1000);
        isDefaultPresentation();
        fillValidDataForClientSideAPI();
        submit.click();
        waitForPageToLoad();
        sleep(1000);
        isNotDefaultPresentation();
    }
View Full Code Here

        tabSet.assertElementExists(true);
        tabSet.assertVisible(true);
        element("fn:firstTab").assertText("Client");
        ElementInspector secondTab = element("fn:secondTab");

        secondTab.click();
        secondTab.assertText("Server");
    }

    //todo: selection test is absent
     @Test
View Full Code Here

        testAppFunctionalPage("/components/datatable/datatableSelectAllCheckbox__sel.jsf");

        DataTableInspector selectionColumnDataTable = dataTable("formID:selectionColumnDataTableID");

        ElementInspector selectAllHeader = element("formID:selectionColumnDataTableID:selectAllHeaderID");
        selectAllHeader.click();
        for (int rowIndex = 0; rowIndex < 8; rowIndex++) {
            selectionColumnDataTable.bodyRow(rowIndex).cell(0).assertChecked(true);
        }
        selectionColumnDataTable.checkSelectedIndexes(0, 1, 2, 3, 4, 5, 6, 7, 8);
View Full Code Here

        testAppFunctionalPage("/components/validation/openFacesInputComponents.jsf");
        String formName;
        //Client-side validation
        formName = "clientValidation";
        ElementInspector clientSubmit = element(formName + ":fmSubmit");
        clientSubmit.click();
        isValidationFailed(formName);

        typeData(formName);
        clientSubmit.click();
        waitForPageToLoad();
View Full Code Here

        ElementInspector clientSubmit = element(formName + ":fmSubmit");
        clientSubmit.click();
        isValidationFailed(formName);

        typeData(formName);
        clientSubmit.click();
        waitForPageToLoad();
        isValidationPassed(formName);
        //server-side validation
        formName = "serverValidation";
        ElementInspector serverSubmit = element(formName + ":fmSubmit");
View Full Code Here

        waitForPageToLoad();
        isValidationPassed(formName);
        //server-side validation
        formName = "serverValidation";
        ElementInspector serverSubmit = element(formName + ":fmSubmit");
        serverSubmit.click();
        waitForPageToLoad();
        isValidationFailed(formName);

        typeData(formName);
        serverSubmit.click();
View Full Code Here

        serverSubmit.click();
        waitForPageToLoad();
        isValidationFailed(formName);

        typeData(formName);
        serverSubmit.click();
        waitForPageToLoad();
        isValidationPassed(formName);
    }

     @Test
View Full Code Here

        String formName;
        formName = "testForm";
        //Submit form without validation
        fillInvalidDataForClientSideAPI();
        ElementInspector withoutValidationBtn = element(formName + ":withoutValidation");
        withoutValidationBtn.click();
        waitForPageToLoad();
        isFailedClientSideAPI();
        fillValidDataForClientSideAPI();
        withoutValidationBtn.click();
        waitForPageToLoad();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.