Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.text()


        foldingPanelToggle.click();
        element("formID:refresher").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        foldingPanelToggle.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        String newCaptionValue = foldingPanelCaption.text();
        String newContentValue = foldingPanelContent.text();
        assertFalse(newCaptionValue.equals(oldCaptionValue));
        assertFalse(newContentValue.equals(oldContentValue));
    }

     @Test
View Full Code Here


        foldingPanel("formID:foldingPanel_a4j_ID").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

        ElementInspector foldingPanelCaption = element("formID:foldingPanel_a4j_Caption");
        ElementInspector foldingPanelContent = element("formID:foldingPanel_a4j_Content");
        String oldCaptionValue = foldingPanelCaption.text();
        String oldContentValue = foldingPanelContent.text();

        FoldingPanelInspector foldingPanel = foldingPanel("formID:foldingPanel_a4j_ID");
        foldingPanel.toggle().click();
        element("formID:refresher_a4j").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here

        element("formID:refresher_a4j").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        foldingPanel.toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

        String newCaptionValue = foldingPanelCaption.text();
        String newContentValue = foldingPanelContent.text();
        assertFalse(newCaptionValue.equals(oldCaptionValue));
        assertFalse(newContentValue.equals(oldContentValue));
    }

     @Test
View Full Code Here

    public void test_q_refreshDataTable() {
        testAppFunctionalPage("/components/datatable/datatableQRefresh.jsf");

        //get DataTable footer and header values before refreshing
        ElementInspector firstHeader = element("formID:requestScopeDataTableID:requestScopeDataTableID_firstHeader");
        String beforeRefreshFirstHeader = firstHeader.text();
        ElementInspector secondHeader = element("formID:requestScopeDataTableID:requestScopeDataTableID_secondHeader");
        String beforeRefreshSecondHeader = secondHeader.text();
        ElementInspector firstFooter = element("formID:requestScopeDataTableID:requestScopeDataTableID_firstFooter");
        String beforeRefreshFirstFooter = firstFooter.text();
        ElementInspector secondFooter = element("formID:requestScopeDataTableID:requestScopeDataTableID_secondFooter");
View Full Code Here

        //get DataTable footer and header values before refreshing
        ElementInspector firstHeader = element("formID:requestScopeDataTableID:requestScopeDataTableID_firstHeader");
        String beforeRefreshFirstHeader = firstHeader.text();
        ElementInspector secondHeader = element("formID:requestScopeDataTableID:requestScopeDataTableID_secondHeader");
        String beforeRefreshSecondHeader = secondHeader.text();
        ElementInspector firstFooter = element("formID:requestScopeDataTableID:requestScopeDataTableID_firstFooter");
        String beforeRefreshFirstFooter = firstFooter.text();
        ElementInspector secondFooter = element("formID:requestScopeDataTableID:requestScopeDataTableID_secondFooter");
        String beforeRefreshSecondFooter = secondFooter.text();
View Full Code Here

        ElementInspector firstHeader = element("formID:requestScopeDataTableID:requestScopeDataTableID_firstHeader");
        String beforeRefreshFirstHeader = firstHeader.text();
        ElementInspector secondHeader = element("formID:requestScopeDataTableID:requestScopeDataTableID_secondHeader");
        String beforeRefreshSecondHeader = secondHeader.text();
        ElementInspector firstFooter = element("formID:requestScopeDataTableID:requestScopeDataTableID_firstFooter");
        String beforeRefreshFirstFooter = firstFooter.text();
        ElementInspector secondFooter = element("formID:requestScopeDataTableID:requestScopeDataTableID_secondFooter");
        String beforeRefreshSecondFooter = secondFooter.text();

        //get DataTable body values before refreshing
        String[] beforeRefreshRowValues = new String[9];
View Full Code Here

        ElementInspector secondHeader = element("formID:requestScopeDataTableID:requestScopeDataTableID_secondHeader");
        String beforeRefreshSecondHeader = secondHeader.text();
        ElementInspector firstFooter = element("formID:requestScopeDataTableID:requestScopeDataTableID_firstFooter");
        String beforeRefreshFirstFooter = firstFooter.text();
        ElementInspector secondFooter = element("formID:requestScopeDataTableID:requestScopeDataTableID_secondFooter");
        String beforeRefreshSecondFooter = secondFooter.text();

        //get DataTable body values before refreshing
        String[] beforeRefreshRowValues = new String[9];
        for (int rowIndex = 0; rowIndex < beforeRefreshRowValues.length; rowIndex++) {
            ElementInspector firstBody = element("formID:requestScopeDataTableID:" + rowIndex + ":requestScopeDataTableID_firstBody");
View Full Code Here

        //get DataTable body values before refreshing
        String[] beforeRefreshRowValues = new String[9];
        for (int rowIndex = 0; rowIndex < beforeRefreshRowValues.length; rowIndex++) {
            ElementInspector firstBody = element("formID:requestScopeDataTableID:" + rowIndex + ":requestScopeDataTableID_firstBody");
            ElementInspector secondBody = element("formID:requestScopeDataTableID:" + rowIndex + ":requestScopeDataTableID_secondBody");
            beforeRefreshRowValues[rowIndex] = firstBody.text() + secondBody.text();
        }

        //refresh DataTable
        element("formID:refresher").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
View Full Code Here

        //get DataTable body values after refreshing
        String[] afterRefreshRowValues = new String[9];
        for (int rowIndex = 0; rowIndex < afterRefreshRowValues.length; rowIndex++) {
            ElementInspector firstBody = element("formID:requestScopeDataTableID:" + rowIndex + ":requestScopeDataTableID_firstBody");
            ElementInspector secondBody = element("formID:requestScopeDataTableID:" + rowIndex + ":requestScopeDataTableID_secondBody");
            afterRefreshRowValues[rowIndex] = firstBody.text() + secondBody.text();
            assertFalse(afterRefreshRowValues[rowIndex].equals(beforeRefreshRowValues[rowIndex]));
        }
    }

     @Test
View Full Code Here

        Selenium selenium = getSelenium();
        assertTrue(selenium.getText(formName + "RequiredMessage").contains("Validation Error"));

        ElementInspector doubleRangeMsg = element(formName + "ValidDRMessage");
        assertTrue(
                doubleRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 0.001 and 0.999.") ||
                        doubleRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 0,001 and 0,999.") ||
                        doubleRangeMsg.text().equals("Validation Error"));

        ElementInspector longRangeMsg = element(formName + "ValidLRMessage");
        assertTrue(
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.