Examples of assertStyle()


Examples of org.seleniuminspector.openfaces.DropDownPopupInspector.assertStyle()

                item2.assertStyle("font-size: 18px;");
            else
                item2.childNodesByName("td").get(0).assertStyle("font-size: 18px;");
            item2.assertStyle("color: Teal;");

            popup.assertStyle("border: 1px dotted red");

            TableInspector itemsTable = popup.itemsTable();
            ElementInspector firstFooterCell = itemsTable.subElement("tfoot[0]/tr[0]/td[0]");
            firstFooterCell.assertStyle("color: silver");
View Full Code Here

Examples of org.seleniuminspector.openfaces.DropDownPopupInspector.assertStyle()

            if (!isFocused) { // focusedStyle has higher prioriry than rolloverStyle
                dropDown.assertStyle("border: 1px dotted darkblue;");
            }

            popup.assertStyle("border: 3px dotted pink");

            // rolloverListItemStyle="color: orange; font: Comic Sans MS; background: LightGreen;"
            submitElement.mouseMove();
            items.get(2).mouseMove();
            items.get(2).assertStyle("color: orange");
View Full Code Here

Examples of org.seleniuminspector.openfaces.FoldingPanelInspector.assertStyle()

     @Test
    public void testStyles() {
        testAppFunctionalPage("/components/foldingpanel/foldingPanelStyles.jsf");

        FoldingPanelInspector foldingPanel = foldingPanel("formID:styledFP");
        foldingPanel.assertStyle("border: 5px solid orange;");
        foldingPanel.assertExpressionEquals("offsetWidth", 200);
        foldingPanel.caption().assertStyle("border: 2px dashed blue; background: LightBlue; color: DarkOrange; font-weight: bold;");

        ElementInspector toggle = foldingPanel.toggle();
        ElementInspector toggleImage = toggle.getElementsByTagName("img").get(0);
View Full Code Here

Examples of org.seleniuminspector.openfaces.HintLabelInspector.assertStyle()

        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;" +
View Full Code Here

Examples of org.seleniuminspector.openfaces.InputTextInspector.assertStyle()

        InputTextInspector secondInput = inputText("formID:second");

        firstInput.assertStyle("background: yellow; border: 3px solid pink; color: brown; font-weight: lighter");
        firstInput.assertWidth(160, 6); // width: 160px in strict mode results in adding 3*2 border width to the resulting element width

        secondInput.assertStyle("background: beige; border: 3px solid pink; color: brown; font-weight: bold");
        secondInput.assertWidth(160, 6); // width: 160px in strict mode results in adding 3*2 border width to the resulting element width

        // focus elements
        // first input
        firstInput.fireEvent("onfocus");
View Full Code Here

Examples of org.seleniuminspector.openfaces.InputTextInspector.assertStyle()

        firstInput.assertWidth(160, 2);
        firstInput.fireEvent("onblur");

        // second input
        secondInput.fireEvent("onfocus");
        secondInput.assertStyle("background: beige; border: 1px solid green; color: brown; font-weight: bold");
        secondInput.assertWidth(160, 2);
        secondInput.fireEvent("onblur");

        // rollover elements
        // first input
View Full Code Here

Examples of org.seleniuminspector.openfaces.InputTextInspector.assertStyle()

        firstInput.mouseOut();

        // second input
        secondInput.mouseOver();
        secondInput.mouseMove();
        secondInput.assertStyle("background: red; border: 4px dotted darkblue; color: brown; font-weight: bold");
        secondInput.assertWidth(160, 8);
        secondInput.mouseOut();
    }

     @Test
View Full Code Here

Examples of org.seleniuminspector.openfaces.InputTextInspector.assertStyle()

        inputText.assertWidth(230, 4);

        // check rollover style
        inputText.mouseOver();
        inputText.mouseMove();
        inputText.assertStyle("border: 2px dotted darkblue");
        inputText.assertWidth(230, 4);
        inputText.mouseOut();

//        inputText.type("");
        getDriver().findElement(By.xpath(inputText.getXPath())).clear();
View Full Code Here

Examples of org.seleniuminspector.openfaces.InputTextInspector.assertStyle()

//        inputText.type("");
        getDriver().findElement(By.xpath(inputText.getXPath())).clear();
        inputText.fireEvent("onblur");
        sleep(1000);
        inputText.assertValue("ajax4jsf prompt text");
        inputText.assertStyle("background: burlywood; color: #7e7e7e");
    }

}
View Full Code Here

Examples of org.seleniuminspector.openfaces.PopupLayerInspector.assertStyle()

     @Test
    public void testStyling() {
        testAppFunctionalPage("/components/popuplayer/popupLayerStyling.jsf");
        PopupLayerInspector popupLayer = popupLayer("formID:styled");

        popupLayer.assertStyle("width: 400px; height: 200px; border: 2px solid crimson; background: mistyrose; " +
                "text-decoration: underline; font-weight: bold; text-align:center; left: 200px; top: 200px;");

        popupLayer.mouseOver();
        popupLayer.mouseMove();
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.