Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertText()


        foldingPanel("fn:tabbedPaneFoldingPanel").toggle().clickAndWait();
        element("fn:firstHeader").assertText("First tab");
        element("fn:firstContent").assertText("Some text on the first tab");
        ElementInspector secondHeader = element("fn:secondHeader");
        secondHeader.assertText("Second tab");

        secondHeader.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        element("fn:secondContent").assertText("Some text on the second tab");
    }
View Full Code Here


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

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

     @Test
    @Ignore
    public void testTreeTableInside() {
View Full Code Here

        tabbedPane.assertVisible(true);

        element("fn:firstHeader").assertText("First tab");
        element("fn:firstContent").assertText("Some text on the first tab");
        ElementInspector secondHeader = element("fn:secondHeader");
        secondHeader.assertText("Second tab");

        secondHeader.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        element("fn:secondContent").assertText("Some text on the second tab");
    }
View Full Code Here

        foldingPanel("fn:tabSetFoldingPanel").toggle().click();
        element("fn:firstTab").assertText("Client");

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

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

        testAppFunctionalPage("/components/inputtext/inputTextFieldBaseFunctionality.jsf");

        ElementInspector value = element("formID:value");
        ElementInspector value2 = element("formID:value2");
        value.assertText("");
        value2.assertText("");
        InputTextInspector first = inputText("formID:first");
        InputTextInspector second = inputText("formID:second");
        first.assertValue("");
        second.assertValue("some prompt text");
View Full Code Here

        testAppFunctionalPage("/components/inputtext/inputTextFieldBaseFunctionality.jsf");

        ElementInspector value = element("formID:value");
        ElementInspector value2 = element("formID:value2");
        value.assertText("");
        value2.assertText("");
        InputTextInspector first = inputText("formID:first");
        InputTextInspector second = inputText("formID:second");
        first.assertValue("");
        second.assertValue("some prompt text");
View Full Code Here

        testAppFunctionalPage("/components/inputtext/inputTextValueChangeListener.jsf");

        ElementInspector asAttributeOutput = element("formID:asAttributeOutput");
        ElementInspector asTagOutput = element("formID:asTagOutput");
        asAttributeOutput.assertText("0");
        asTagOutput.assertText("false");

        inputText("formID:first").type("Yellow");
        inputText("formID:second").type("Yellow");

        element("formID:submit").clickAndWait();
View Full Code Here

        inputText("formID:second").type("Yellow");

        element("formID:submit").clickAndWait();

        asAttributeOutput.assertText("1");
        asTagOutput.assertText("true");
    }

     @Test
    public void testClientSideEvents() {
        Selenium selenium = getSelenium();
View Full Code Here

        for (int i = 1; i < 3; i++) {
            firstColumnHeader.assertText(firstColumnHeaderContent);
            secondColumnHeader.assertText(secondColumnHeaderContent);
            firstColumnFooter.assertText(firstColumnFooterContent);
            secondColumnFooter.assertText(secondColumnFooterContent);

            checkDataTableContents(selenium, referenceDataTableValues, i);
            clientPaginator.nextPage().clickAndWait(loadingMode);
        }
        for (int i = 3; i > 1; i--) {
View Full Code Here

        }
        for (int i = 3; i > 1; i--) {
            firstColumnHeader.assertText(firstColumnHeaderContent);
            secondColumnHeader.assertText(secondColumnHeaderContent);
            firstColumnFooter.assertText(firstColumnFooterContent);
            secondColumnFooter.assertText(secondColumnFooterContent);

            checkDataTableContents(selenium, referenceDataTableValues, i);
            element("formID:paginableDataTable").click();
            //go to the previous page using keyboard
            selenium.getEval("var el = O$('formID:paginableDataTable'); var evObj = document.createEvent('KeyEvents'); evObj.initKeyEvent('keypress', true, true, window, false, false, false, false, 33, 0); el.dispatchEvent(evObj);");
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.