Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertVisible()


        requiredInput.assertElementExists();
        requiredInput.assertVisible(false);

        ElementInspector message = element("fn:validationMessage");
        message.assertElementExists();
        message.assertVisible(false);

        foldingPanel("fn:validationFoldingPanel").toggle().click();

        requiredInput.assertVisible(true);
        message.assertVisible(false);
View Full Code Here


        message.assertVisible(false);

        foldingPanel("fn:validationFoldingPanel").toggle().click();

        requiredInput.assertVisible(true);
        message.assertVisible(false);

        requiredInput.keyPress(13);

        message.assertVisible(true);
        message.assertContainsText("Value is required.");
View Full Code Here

        requiredInput.assertVisible(true);
        message.assertVisible(false);

        requiredInput.keyPress(13);

        message.assertVisible(true);
        message.assertContainsText("Value is required.");
        element("fn:validationMessage").assertVisible(true);
    }

}
View Full Code Here

        ElementInspector chart = element("fn:first_chartID");
        chart.assertElementExists(false);

        foldingPanel("fn:chartFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        chart.assertElementExists(true);
        chart.assertVisible(true);
    }

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

        foldingPanel("fn:popupLayerFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

        element("fn:header_invoker").click();
        ElementInspector headerPopup = element("fn:header_popup");
        headerPopup.assertVisible(true);
        headerPopup.assertSubtext(0, 28, "this is popup layer on tab 1");
    }

     @Test
    public void testAjaxTabbedPaneInside() {
View Full Code Here

        DataTableUtils.TestDataTableItem referenceFilteredRow = DataTableUtils.TWO_STRING_COLUMN_LIST.get(0);

        //check is right row appeared after filtering and other rows is non-visible
        ElementInspector firstBody = element("formID:filterableDataTable_comboBox:0:filterableDataTable_comboBox_firstBody");
        firstBody.assertVisible(true);
        ElementInspector secondBody = element("formID:filterableDataTable_comboBox:0:filterableDataTable_comboBox_secondBody");
        secondBody.assertVisible(true);

        //compare filtered row with the reference values
        firstBody.assertText(referenceFilteredRow.getFirstColumn());
View Full Code Here

        //check is right row appeared after filtering and other rows is non-visible
        ElementInspector firstBody = element("formID:filterableDataTable_comboBox:0:filterableDataTable_comboBox_firstBody");
        firstBody.assertVisible(true);
        ElementInspector secondBody = element("formID:filterableDataTable_comboBox:0:filterableDataTable_comboBox_secondBody");
        secondBody.assertVisible(true);

        //compare filtered row with the reference values
        firstBody.assertText(referenceFilteredRow.getFirstColumn());
        secondBody.assertText(referenceFilteredRow.getSecondColumn());
View Full Code Here

        ElementInspector tabbedPane = element("fn:tabbedPaneID");
        tabbedPane.assertElementExists(false);

        foldingPanel("fn:tabbedPaneFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tabbedPane.assertElementExists(true);
        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");
View Full Code Here

        //check is right row appeared after filtering and other rows is non-visible
        for (int i = 0; i < 9; i++) {
            if (i == 0) {
                ElementInspector firstBody = element("formID:filterableDataTable_dropDownField:0:filterableDataTable_dropDownField_firstBody");
                firstBody.assertVisible(true);
                ElementInspector secondBody = element("formID:filterableDataTable_dropDownField:0:filterableDataTable_dropDownField_secondBody");
                secondBody.assertVisible(true);

                //compare filtered row with the reference values
                firstBody.assertText(referenceFilteredRow.getFirstColumn());
View Full Code Here

        for (int i = 0; i < 9; i++) {
            if (i == 0) {
                ElementInspector firstBody = element("formID:filterableDataTable_dropDownField:0:filterableDataTable_dropDownField_firstBody");
                firstBody.assertVisible(true);
                ElementInspector secondBody = element("formID:filterableDataTable_dropDownField:0:filterableDataTable_dropDownField_secondBody");
                secondBody.assertVisible(true);

                //compare filtered row with the reference values
                firstBody.assertText(referenceFilteredRow.getFirstColumn());
                secondBody.assertText(referenceFilteredRow.getSecondColumn());
            } else {
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.