Package org.seleniuminspector.openfaces

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


        assertTrue(Math.abs(popupLayerPos.x - (windowSize.width - popupLayerWidth) / 2) <= 10);
        assertTrue(Math.abs(popupLayerPos.y - (windowSize.height - popupLayerHeight) / 2) <= 10);

        popupLayer.assertVisible(true);
        element("formID:submit").clickAndWait();
        popupLayer.assertVisible(true);
    }

    // setPopupLayerLeft, setPopupLayerTop
     @Test
    public void testSetTopAndLeftJSFunctions() {
View Full Code Here


    public void testSetTopAndLeftJSFunctions() {
        testAppFunctionalPage("/components/popuplayer/popupLayerJSFunctions.jsf");

        PopupLayerInspector popupLayer = popupLayer("formID:setLeftTop");

        popupLayer.assertVisible(false);
        InputInspector leftCoordinateInput = new InputInspector("leftCoodinate");
        leftCoordinateInput.type("100");
        InputInspector topCoordinateInput = new InputInspector("topCoodinate");
        topCoordinateInput.type("200");
        ElementInspector topLeftButton = element("setPopupLayerTopLeft");
View Full Code Here

        InputInspector topCoordinateInput = new InputInspector("topCoodinate");
        topCoordinateInput.type("200");
        ElementInspector topLeftButton = element("setPopupLayerTopLeft");
        topLeftButton.click();

        popupLayer.assertVisible(true);
        element("formID:submit").clickAndWait();
        popupLayer.assertVisible(true);

        popupLayer.assertPosition(100, 200);
View Full Code Here

        ElementInspector topLeftButton = element("setPopupLayerTopLeft");
        topLeftButton.click();

        popupLayer.assertVisible(true);
        element("formID:submit").clickAndWait();
        popupLayer.assertVisible(true);

        popupLayer.assertPosition(100, 200);

        leftCoordinateInput.type("300");
        topCoordinateInput.type("500");
View Full Code Here

     @Test
    public void testReRenderThroughA4J() {
        testAppFunctionalPage("/components/popuplayer/popupLayer_a4j.jsf");
        PopupLayerInspector popupLayer = popupLayer("formID:popupLayerID");
        popupLayer.assertElementExists();
        popupLayer.assertVisible(false);
        element("formID:buttonID").click();
        String oldValue = popupLayer.text();
        popupLayer.assertVisible(true);
        element("formID:popupCloser").click();
        popupLayer.assertVisible(false);
View Full Code Here

        PopupLayerInspector popupLayer = popupLayer("formID:popupLayerID");
        popupLayer.assertElementExists();
        popupLayer.assertVisible(false);
        element("formID:buttonID").click();
        String oldValue = popupLayer.text();
        popupLayer.assertVisible(true);
        element("formID:popupCloser").click();
        popupLayer.assertVisible(false);
        element("formID:refresher").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        element("formID:buttonID").click();
View Full Code Here

        popupLayer.assertVisible(false);
        element("formID:buttonID").click();
        String oldValue = popupLayer.text();
        popupLayer.assertVisible(true);
        element("formID:popupCloser").click();
        popupLayer.assertVisible(false);
        element("formID:refresher").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        element("formID:buttonID").click();
        String newValue = popupLayer.text();
        popupLayer.assertVisible(true);
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.