Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertText()


        secondTab.click();
        loadingMode.waitForLoad();

        verifyStyles(tabbedPane, 1);
        getSelectedElement.click();
        emptyElement.assertText("1");
        secondPane.assertText("Second tab content");

        firstTab.click();
        if (loadingMode instanceof ServerLoadingMode) {
            loadingMode.waitForLoad();
View Full Code Here


        if (loadingMode instanceof ServerLoadingMode) {
            loadingMode.waitForLoad();
        }
        verifyStyles(tabbedPane, 0);
        getSelectedElement.click();
        emptyElement.assertText("0");
        firstPane.assertText("First tab content");
    }

    private void verifyStyles(TabbedPaneInspector tabbedPane, int selectedTabIndex) {
        TabSetInspector tabSet = tabbedPane.tabSet();
View Full Code Here

        tabSet("fn:loadingModes").setTabIndex(1, ServerLoadingMode.getInstance());
        element("fn:firstTabSet_firstTab").assertText("Client");
        ElementInspector firstTabSetSecondTab = element("fn:firstTabSet_secondTab");

        firstTabSetSecondTab.click();
        firstTabSetSecondTab.assertText("Server");

        selenium.click("fn:secondHeader");
        element("fn:secondTabSet_firstTab").assertText("Client");
        ElementInspector secondTabSetSecondTab = element("fn:secondTabSet_secondTab");
View Full Code Here

        selenium.click("fn:secondHeader");
        element("fn:secondTabSet_firstTab").assertText("Client");
        ElementInspector secondTabSetSecondTab = element("fn:secondTabSet_secondTab");

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

     @Test
    public void testTreeTableInside() {
        testAppFunctionalPage("/components/tabbedpane/treeTableIn.jsf");
View Full Code Here

        element("fn:firstTabSet_firstTab").assertText("Client");

        ElementInspector firstTabSetSecondTab = element("fn:firstTabSet_secondTab");
        firstTabSetSecondTab.click();
        firstTabSetSecondTab.assertText("Server");

        element("fn:secondHeader").clickAndWait();
        element("fn:secondTabSet_firstTab").assertText("Client");

        ElementInspector secondTabSetSecondTab = element("fn:secondTabSet_secondTab");
View Full Code Here

        element("fn:secondHeader").clickAndWait();
        element("fn:secondTabSet_firstTab").assertText("Client");

        ElementInspector secondTabSetSecondTab = element("fn:secondTabSet_secondTab");
        secondTabSetSecondTab.click();
        secondTabSetSecondTab.assertText("Server");
    }

     @Test
    public void testTreeTableInside() {
        testAppFunctionalPage("/components/tabbedpane/treeTableIn.jsf");
View Full Code Here

        element("fn:firstTabSet_firstTab").assertText("Client");
        ElementInspector firstTabSetSecondTab = element("fn:firstTabSet_secondTab");

        firstTabSetSecondTab.click();
        firstTabSetSecondTab.assertText("Server");

        element("fn:secondHeader").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        element("fn:secondTabSet_firstTab").assertText("Client");
        ElementInspector secondTabSetSecondTab = element("fn:secondTabSet_secondTab");
View Full Code Here

        element("fn:secondHeader").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        element("fn:secondTabSet_firstTab").assertText("Client");
        ElementInspector secondTabSetSecondTab = element("fn:secondTabSet_secondTab");

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

     @Test
    public void testTreeTableInside() {
        testAppFunctionalPage("/components/tabbedpane/treeTableIn.jsf");
View Full Code Here

        /* verify that first tab is selected */
        // using getSelectedIndex() function
        ElementInspector getSelectedTab1Button = element("getSelectedTab1");
        getSelectedTab1Button.click();
        ElementInspector empty = element("empty");
        empty.assertText("0");

        // styles verification
        verifyStyles(tabSet, 0);

        /* swicth selected tab and make verifications again */
 
View Full Code Here

        /* swicth selected tab and make verifications again */
        tabSet.tabs().get(1).click();
        tabSet.tabs().get(1).mouseOut();
        getSelectedTab1Button.click();
        empty.assertText("1");

        //styles verification
        verifyStyles(tabSet, 1);
    }

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.