Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertText()


        // check 'ja' locale
        localeChanger.setTabIndex(2, ServerLoadingMode.getInstance());
        testAppFunctionalPage("/components/loadbundle/withTabbedPane.jsf"); // issue a GET request for view to update locale in JSP
        tabbedPane.setPageIndex(0, OpenFacesAjaxLoadingMode.getInstance());
        tabSet.tabs().get(0).assertText(TODAY_JA);
        secondTab.assertText(WEEK_JA);

        tabbedPane.contentPanes().get(0).assertText(WEEK_JA);
        tabbedPane.setPageIndex(1);
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        tabbedPane.contentPanes().get(1).assertText(TODAY_JA);
View Full Code Here


        // check 'ru' locale
        localeChanger.setTabIndex(3, ServerLoadingMode.getInstance());
        testAppFunctionalPage("/components/loadbundle/withTabbedPane.jsf"); // issue a GET request for view to update locale in JSP
        tabbedPane.setPageIndex(0, OpenFacesAjaxLoadingMode.getInstance());
        tabSet.tabs().get(0).assertText(TODAY_RU);
        secondTab.assertText(WEEK_RU);

        tabbedPane.contentPanes().get(0).assertText(WEEK_RU);
        tabbedPane.setPageIndex(1);
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        tabbedPane.contentPanes().get(1).assertText(TODAY_RU);
View Full Code Here

        assertText(value);

        mouseOver();
        sleep(250);
        hintElement.assertVisible(true);
        hintElement.assertText(hint);
    }

    public void showHintLabel() {
        mouseOver();
        sleep(250);
View Full Code Here

        ElementInspector selectionNodeData = element("selectionNodeDataID");
        String indexBeforeSubmitNodeDataTreeTable = selectionNodeData.text();
        element("formID:submitID").clickAndWait();

        selectionNodePath.assertText(indexBeforeSubmitNodePathTreeTable);
        selectionNodeData.assertText(indexBeforeSubmitNodeDataTreeTable);
    }

    /**
     * Check TreeTable multiple selection
     */
 
View Full Code Here

        //select root nodes
        for (int i = 0; i < 5; i++) {
            createEvent(multipleSelectionTreeTable, null, EventType.KEY, "keypress", KeyEvent.VK_DOWN, true);
        }
        ElementInspector emptyElement = element("empty");
        emptyElement.assertText("  0 1 2 3 4 5");

        for (int i = 0; i < 6; i++) {
            multipleSelectionTreeTable.getElementsByTagName("img").get(i).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        }
View Full Code Here

        for (int i = 0; i < 25; i++) {
            createEvent(multipleSelectionTreeTable, null, EventType.KEY, "keypress", KeyEvent.VK_DOWN, true);
        }


        emptyElement.assertText("  0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24");
        for (int i = 0; i < 6; i++) {
            multipleSelectionTreeTable.getElementsByTagName("img").get(i).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        }

        categoryOutput.click();
View Full Code Here

        categoryOutput.click();
        for (int i = 0; i < 5; i++) {
            createEvent(element("formID:multipleSelectionTreeTableID"), null, EventType.KEY, "keypress", KeyEvent.VK_DOWN, true);
        }
        emptyElement.assertText("  0 3 15 18 20 23");

        /*check 'nodePaths' and 'nodeDatas' attributes*/
        //verify is attributes took right initial values
        ElementInspector nodePathsOutput = element("formID:nodePathsID");
        nodePathsOutput.assertText("Document BrowsingNetwork Access");
View Full Code Here

        emptyElement.assertText("  0 3 15 18 20 23");

        /*check 'nodePaths' and 'nodeDatas' attributes*/
        //verify is attributes took right initial values
        ElementInspector nodePathsOutput = element("formID:nodePathsID");
        nodePathsOutput.assertText("Document BrowsingNetwork Access");
        ElementInspector nodeDataOutput = element("formID:nodeDatasID");
        nodeDataOutput.assertText("Document BrowsingDocument Deletion");
        ElementInspector selectionNodePathsDiv = element("selectionNodePathsID");
        selectionNodePathsDiv.assertText("  1 5");
        ElementInspector selectionNodeDataDiv = element("selectionNodeDatasID");
View Full Code Here

        /*check 'nodePaths' and 'nodeDatas' attributes*/
        //verify is attributes took right initial values
        ElementInspector nodePathsOutput = element("formID:nodePathsID");
        nodePathsOutput.assertText("Document BrowsingNetwork Access");
        ElementInspector nodeDataOutput = element("formID:nodeDatasID");
        nodeDataOutput.assertText("Document BrowsingDocument Deletion");
        ElementInspector selectionNodePathsDiv = element("selectionNodePathsID");
        selectionNodePathsDiv.assertText("  1 5");
        ElementInspector selectionNodeDataDiv = element("selectionNodeDatasID");
        selectionNodeDataDiv.assertText("  1 4");

View Full Code Here

        ElementInspector nodePathsOutput = element("formID:nodePathsID");
        nodePathsOutput.assertText("Document BrowsingNetwork Access");
        ElementInspector nodeDataOutput = element("formID:nodeDatasID");
        nodeDataOutput.assertText("Document BrowsingDocument Deletion");
        ElementInspector selectionNodePathsDiv = element("selectionNodePathsID");
        selectionNodePathsDiv.assertText("  1 5");
        ElementInspector selectionNodeDataDiv = element("selectionNodeDatasID");
        selectionNodeDataDiv.assertText("  1 4");

        //check root nodes
        element("formID:multipleNodePathsSelectionTreeTableID:0:categoryID").click();
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.