Examples of assertWidth()


Examples of org.seleniuminspector.ElementInspector.assertWidth()

        borderLayoutPanel.assertExpressionEquals("offsetWidth", windowSize.width);
        borderLayoutPanel.assertExpressionEquals("offsetHeight", windowSize.height);

        ElementInspector content = element("formID:borderLayoutPanel0::content");
        content.assertElementExists();
        content.assertWidth(windowSize.width / 2 - 6, 1);
        content.assertHeight(windowSize.height / 2 - 5, 1);
//    saveScreenshotToFile("c:/temp/BorderLayoutPanelFullScreenTest.testRendering.3.png");
    }

     @Test
View Full Code Here

Examples of org.seleniuminspector.openfaces.DateChooserInspector.assertWidth()

        // disabledFieldStyle="background: yellow; border: 2px solid green;"
        field.assertStyle("border: 2px solid green; background: yellow");

        // disabledStyle="width: 400px;"
        dateChooser.assertWidth(400);
    }


    private void checkEnabledStyles(DateChooserInspector dateChooser, ElementInspector button, CalendarInspector calendarInspector, ElementInspector calendarBody, InputInspector field) {
        /*check field and button style*/
 
View Full Code Here

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

        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");
        firstInput.assertStyle("background: beige; border: 1px solid green; color: brown; font-weight: bold");
View Full Code Here

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

        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
        firstInput.mouseOver();
View Full Code Here

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

        // 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
    public void testValueChangeListener() {
View Full Code Here

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

        inputText.assertValue("ajax4jsf");
        inputText.type("change value");
        element("formID:refresher").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        inputText.assertValue("ajax4jsf");
        inputText.assertWidth(230, 4);

        // check rollover style
        inputText.mouseOver();
        inputText.mouseMove();
        inputText.assertStyle("border: 2px dotted darkblue");
View Full Code Here

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

        // 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();
        inputText.fireEvent("onblur");
View Full Code Here

Examples of org.seleniuminspector.openfaces.TwoListSelectionInspector.assertWidth()

            option.assertText("itemL_" + (i + 1));
            option.assertStyle("font-weight: bold");
        }

        //style="width: 500px; border: 3px dotted brown;"
        tls.assertWidth(500);

        addAllBtn.assertExpressionEquals("title", "add all hint");
        addAllBtn.assertValue("add all");

        addBtn.assertExpressionEquals("title", "add hint");
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.