Examples of HintLabelInspector


Examples of org.seleniuminspector.openfaces.HintLabelInspector

        /* sorting, pagination, single selection */

        //check is hinLabel in first column header visible
        DataTableInspector hintLabelDataTable = dataTable("fn:hintLabelDataTable");
        HintLabelInspector headerHintLabel1 = hintLabel("fn:hintLabelDataTable:header_hintLabel_1");
        headerHintLabel1.checkVisibilityAndContent("Header hint label value 1", "Header hint label title 1");
        hintLabel("fn:hintLabelDataTable:header_hintLabel_2")
                .checkVisibilityAndContent("Header hint label value 2", "Header hint label title 2");

        // todo: check header cells when iterating over each page

        //click at hinlLabel placed in the header to perform sorting

        hintLabelDataTable.column(1).makeSorting();


        for (int pageNo = 1; pageNo <= 2; pageNo++) {
            //execute pagination from first to third page verify data on every page
            List<DataTableUtils.TestDataTableItem> currentPageValues = DataTableUtils.getCurrentPageFromReferenceValues(hintLabelDataTableValues, pageNo);
            for (int rowIndex = 0; rowIndex < 3; rowIndex++) {
                DataTableUtils.TestDataTableItem currentReferenceRow = currentPageValues.get(rowIndex);

                HintLabelInspector bodyHintLabel1 = hintLabel("fn:hintLabelDataTable:" + rowIndex + ":body_hinLabel_1");
                bodyHintLabel1.clickAndWait();
                bodyHintLabel1.hint().mouseOut();
                bodyHintLabel1.checkVisibilityAndContent(currentReferenceRow.getFirstColumn(), currentReferenceRow.getSecondColumn());
                bodyHintLabel1.hint().mouseOut();
                hintLabel("fn:hintLabelDataTable:" + rowIndex + ":body_hinLabel_2")
                        .checkVisibilityAndContent(currentReferenceRow.getSecondColumn(), currentReferenceRow.getFirstColumn());

                // check is single selection performed well
                bodyHintLabel1.clickAndWait();
                bodyHintLabel1.hint().mouseOut();
                hintLabelDataTable.checkSelectedIndex(rowIndex);
            }
            // check footer hintLabels
            hintLabel("fn:hintLabelDataTable:footer_hintLabel_1")
                    .checkVisibilityAndContent("Footer hint label value 1", "Footer hint label title 1");
            hintLabel("fn:hintLabelDataTable:footer_hintLabel_2")
                    .checkVisibilityAndContent("Footer hint label value 2", "Footer hint label title 2");

            dataTablePaginator("fn:hintLabelDataTable:hintLabelDataTablePaginator").nextPage()
                    .clickAndWait();
        }

        /* filtering and filtered data verification */
        final String filterCriterion = "col4_row1";
        hintLabelDataTable.column(2).filter(InputTextFilterInspector.class, "fn:hintLabelDataTable:filter1").makeFiltering(filterCriterion);
        HintLabelInspector hintLabel = hintLabel("fn:hintLabelDataTable:0:body_hinLabel_2");
        hintLabel.mouseOver();
        sleep(250);
        hintLabel.assertText(filterCriterion);
        hintLabel.hint().assertText("col3_row1");
    }
View Full Code Here

Examples of org.seleniuminspector.openfaces.HintLabelInspector

    public void _testHintLabelTooltipPartClientSideEvents() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/hintlabel/hintLabel.jsf");

        //onclick
        HintLabelInspector clickHintLabel = hintLabel("formID:clickID");
        clickHintLabel.showHintLabel();
        clickHintLabel.hint().click();
        assertTrue(selenium.isTextPresent("onclick works"));
        assertTrue(selenium.isTextPresent("click"));

        //ondblclick
        HintLabelInspector doubleClickHintLabel = hintLabel("formID:doubleclickID");
        doubleClickHintLabel.showHintLabel();
        doubleClickHintLabel.doubleClick();
        assertTrue(selenium.isTextPresent("ondblclick works"));
        assertTrue(selenium.isTextPresent("dblclick"));

        //onmousedown
        HintLabelInspector mouseDownHintLabel = hintLabel("formID:mousedownID");
        mouseDownHintLabel.showHintLabel();
        mouseDownHintLabel.hint().mouseDown();
        assertTrue(selenium.isTextPresent("onmousedown works"));
        assertTrue(selenium.isTextPresent("mousedown"));

        //onmouseover
        HintLabelInspector mouseOverHintLabel = hintLabel("formID:mouseoverID");
        mouseOverHintLabel.showHintLabel();
        mouseOverHintLabel.hint().mouseOver();
        assertTrue(selenium.isTextPresent("onmouseover works"));
        assertTrue(selenium.isTextPresent("mouseover"));

        //onmouseup
        HintLabelInspector mouseUpHintLabel = hintLabel("formID:mouseupID");
        mouseUpHintLabel.showHintLabel();
        mouseUpHintLabel.hint().mouseUp();
        assertTrue(selenium.isTextPresent("onmouseup works"));
        assertTrue(selenium.isTextPresent("mouseup"));

        //onmouseout
        HintLabelInspector mouseOutHintLabel = hintLabel("formID:mouseoutID");
        mouseOutHintLabel.showHintLabel();
        mouseOutHintLabel.hint().mouseOut();
        assertTrue(selenium.isTextPresent("onmouseout works"));
        assertTrue(selenium.isTextPresent("mouseout"));

        //onmousemove
        HintLabelInspector mouseMoveHintLabel = hintLabel("formID:mousemoveID");
        mouseMoveHintLabel.showHintLabel();
        mouseMoveHintLabel.hint().mouseMove();
        assertTrue(selenium.isTextPresent("onmousemove works"));
        assertTrue(selenium.isTextPresent("mousemove"));
    }
View Full Code Here

Examples of org.seleniuminspector.openfaces.HintLabelInspector

        sufficientLengthWithHintSpecified();
//    insufficientLengthWithHintSpecified(selenium);
    }

    private void sufficientLengthWithoutHintSpecified() {
        HintLabelInspector firstHintLabel = hintLabel("formID:first");
        firstHintLabel.assertVisible(true);
        firstHintLabel.assertText("Jupiter is more than twice as massive");

        firstHintLabel.hint().assertElementExists(false);
        firstHintLabel.showHintLabel();
        firstHintLabel.hint().assertVisible(false);
    }
View Full Code Here

Examples of org.seleniuminspector.openfaces.HintLabelInspector

//    secondHintLabel.hint().assertVisible(true);
//    secondHintLabel.hint().assertText("Jupiter is more than twice as massive as all the other planets combined (the mass of Jupiter is 318 times that of Earth)");
//  }

    private void sufficientLengthWithHintSpecified() {
        HintLabelInspector thirdHintLabel = hintLabel("formID:third");
        thirdHintLabel.assertVisible(true);
        thirdHintLabel.assertText("Jupiter is more than twice as massive");

        thirdHintLabel.hint().assertVisible(false);
        thirdHintLabel.showHintLabel();
        thirdHintLabel.hint().assertVisible(true);
        thirdHintLabel.hint().assertText("Jupiter is more than twice as massive as all the other planets combined (the mass of Jupiter is 318 times that of Earth)");
    }
View Full Code Here

Examples of org.seleniuminspector.openfaces.HintLabelInspector

        if (makeSubmit) {
            element("formID:submit").clickAndWait();
        }

        HintLabelInspector hintLabel = hintLabel("formID:hintLabelStyled");
        hintLabel.assertStyle("background-color: beige;" +
                " border-left-color: pink;" +
                " border-left-width: 3px;" +
                " border-left-style: solid;" +
                " padding-top: 10px;" +
                " padding-bottom: 10px;" +
                " width: 160px;" +
                " color: brown;" +
                " font-weight: bold;" +
                " overflow: hidden;");

        hintLabel.showHintLabel();

        hintLabel.hint().assertStyle("background-color: PaleGreen;" +
                " border-left-color: aqua;" +
                " border-left-width: 3px;" +
                " border-left-style: dotted;" +
                " padding-top: 20px;" +
                " padding-bottom: 20px;" +
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.