Package org.seleniuminspector.openfaces

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


        button.click();
        String newValue = popupLayer.text();
        popupLayer.assertVisible(true);
        popupCloser.click();
        popupLayer.assertElementExists();
        popupLayer.assertVisible(false);
        assertFalse(newValue.equals(oldValue));
    }

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


     @Test
    public void testPopupLayerVisibleByPageLoad() {
        testAppFunctionalPage("/components/popuplayer/popupLayerVisibleByLoad.jsf");

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

    // showPopupLayer, hidePopupLayer
View Full Code Here

        testAppFunctionalPage("/components/popuplayer/popupLayerVisibleByLoad.jsf");

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

    // showPopupLayer, hidePopupLayer
     @Test
    public void testShowHideJSFunctions() {
View Full Code Here

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

        PopupLayerInspector popupLayer = popupLayer("formID:showHide");
        // show PopupLayer
        popupLayer.assertVisible(false);
        element("showPopupLayer").click();
        popupLayer.assertVisible(true);

        // make submit and check is PopupLayer in 'visible' state
        element("formID:submit").clickAndWait();
View Full Code Here

        PopupLayerInspector popupLayer = popupLayer("formID:showHide");
        // show PopupLayer
        popupLayer.assertVisible(false);
        element("showPopupLayer").click();
        popupLayer.assertVisible(true);

        // make submit and check is PopupLayer in 'visible' state
        element("formID:submit").clickAndWait();
        popupLayer.assertVisible(true);
View Full Code Here

        element("showPopupLayer").click();
        popupLayer.assertVisible(true);

        // make submit and check is PopupLayer in 'visible' state
        element("formID:submit").clickAndWait();
        popupLayer.assertVisible(true);

        // hide PopupLayer
        element("hidePopupLayer").click();
        popupLayer.assertVisible(false);
    }
View Full Code Here

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

        // hide PopupLayer
        element("hidePopupLayer").click();
        popupLayer.assertVisible(false);
    }

    // showPopupLayerAtXY
     @Test
    public void testShowPopupLayerAtXYJSFunction() {
View Full Code Here

        testAppFunctionalPage("/components/popuplayer/popupLayerJSFunctions.jsf");

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

        element("showPopupLayerAtXY").click();
        popupLayer.assertVisible(true);

        element("formID:submit").clickAndWait();
        popupLayer.assertVisible(true);
        popupLayer.assertPosition(250, 250);
    }
View Full Code Here

        element("showPopupLayerAtXY").click();
        popupLayer.assertVisible(true);

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

    // showCentered
     @Test
View Full Code Here

        Point popupLayerPos = popupLayer.position();
        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
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.