Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.text()


        emptyElement.assertText("22");

        /*Check TreeTable with defined 'nodePath' and 'nodeData' attributes*/
        element("formID:singleNodePathSelectionTreeTableID:3:categoryID").click();
        ElementInspector selectionNodePath = element("selectionNodePathID");
        String indexBeforeSubmitNodePathTreeTable = selectionNodePath.text();

        element("formID:singleNodeDataSelectionTreeTableID:1:categoryID").keyPress(KeyEvent.VK_RIGHT);
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        treeTable.keyPress(KeyEvent.VK_DOWN);
        ElementInspector selectionNodeData = element("selectionNodeDataID");
View Full Code Here


        element("formID:singleNodeDataSelectionTreeTableID:1:categoryID").keyPress(KeyEvent.VK_RIGHT);
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        treeTable.keyPress(KeyEvent.VK_DOWN);
        ElementInspector selectionNodeData = element("selectionNodeDataID");
        String indexBeforeSubmitNodeDataTreeTable = selectionNodeData.text();
        element("formID:submitID").clickAndWait();

        selectionNodePath.assertText(indexBeforeSubmitNodePathTreeTable);
        selectionNodeData.assertText(indexBeforeSubmitNodeDataTreeTable);
    }
View Full Code Here

     @Test
    public void testReRenderThroughA4J() {
        testAppFunctionalPage("/components/tabbedpane/tabbedPane_a4j.jsf");

        ElementInspector firstTab = element("formID:tab_first");
        String oldTabFirst = firstTab.text();
        ElementInspector secondTab = element("formID:tab_second");
        String oldTabSecond = secondTab.text();
        ElementInspector firstContent = element("formID:first_content");
        String oldContentFirst = firstContent.text();
View Full Code Here

        testAppFunctionalPage("/components/tabbedpane/tabbedPane_a4j.jsf");

        ElementInspector firstTab = element("formID:tab_first");
        String oldTabFirst = firstTab.text();
        ElementInspector secondTab = element("formID:tab_second");
        String oldTabSecond = secondTab.text();
        ElementInspector firstContent = element("formID:first_content");
        String oldContentFirst = firstContent.text();

        secondTab.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        ElementInspector secondContent = element("formID:second_content");
View Full Code Here

        ElementInspector firstTab = element("formID:tab_first");
        String oldTabFirst = firstTab.text();
        ElementInspector secondTab = element("formID:tab_second");
        String oldTabSecond = secondTab.text();
        ElementInspector firstContent = element("formID:first_content");
        String oldContentFirst = firstContent.text();

        secondTab.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        ElementInspector secondContent = element("formID:second_content");
        String oldContentSecond = secondContent.text();
View Full Code Here

        ElementInspector firstContent = element("formID:first_content");
        String oldContentFirst = firstContent.text();

        secondTab.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        ElementInspector secondContent = element("formID:second_content");
        String oldContentSecond = secondContent.text();

        element("formID:refresher").click();

        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here

        RichFacesAjaxLoadingMode.getInstance().waitForLoad();

        String newTabFirst = firstTab.text();
        String newTabSecond = secondTab.text();
        String newContentSecond = secondContent.text();

        firstTab.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        String newContentFirst = firstContent.text();
        assertFalse(newTabFirst.equals(oldTabFirst));
        assertFalse(newTabSecond.equals(oldTabSecond));
View Full Code Here

        InputInspector firstTab = new InputInspector("formID:tab_first_a4j");
        String oldTabFirst = firstTab.value();
        InputInspector secondTab = new InputInspector("formID:tab_second_a4j");
        String oldTabSecond = secondTab.value();
        ElementInspector firstTabContent = element("formID:first_content_a4j");
        String oldContentFirst = firstTabContent.text();

        secondTab.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        ElementInspector secondTabContent = element("formID:second_content_a4j");
        String oldContentSecond = secondTabContent.text();
View Full Code Here

        ElementInspector firstTabContent = element("formID:first_content_a4j");
        String oldContentFirst = firstTabContent.text();

        secondTab.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        ElementInspector secondTabContent = element("formID:second_content_a4j");
        String oldContentSecond = secondTabContent.text();

        element("formID:refresher_a4j").click();

        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here

        RichFacesAjaxLoadingMode.getInstance().waitForLoad();

        String newTabFirst = firstTab.value();
        String newTabSecond = secondTab.value();
        String newContentSecond = secondTabContent.text();

        firstTab.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        String newContentFirst = firstTabContent.text();
        assertFalse(newTabFirst.equals(oldTabFirst));
        assertFalse(newTabSecond.equals(oldTabSecond));
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.