Package org.seleniuminspector.openfaces

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


        PopupLayerInspector confirmedPopup = popupLayer("formID:confirmedPopup");
        for (int i = 0; i < 3; i++) {
            selenium.click("formID:button1");
            String oldSource = selenium.getHtmlSource();
            confirmation.okButton().click();
            confirmedPopup.assertVisible(true);
            selenium.click("formID:closer");
            selenium.click("formID:refresher");
            RichFacesAjaxLoadingMode.getInstance().waitForLoad();
            selenium.click("formID:button1");
            String newSource = selenium.getHtmlSource();
View Full Code Here


            selenium.click("formID:button1");
            String newSource = selenium.getHtmlSource();
            sleep(500);
            confirmation.okButton().click();
            sleep(500);
            confirmedPopup.assertVisible(true);
            selenium.click("formID:closer");
            assertTrue(!newSource.equals(oldSource));
        }
    }
View Full Code Here

        PopupLayerInspector confirmedPopup = popupLayer("formID:confirmed_a4j_Popup");
        for (int i = 0; i < 3; i++) {
            selenium.click("formID:a4j_button");
            String oldSource = selenium.getHtmlSource();
            confirmation.okButton().click();
            confirmedPopup.assertVisible(true);
            selenium.click("formID:closer_a4j");
            selenium.click("formID:refresher_a4j");
            RichFacesAjaxLoadingMode.getInstance().waitForLoad();
            selenium.click("formID:button1");
            String newSource = selenium.getHtmlSource();
View Full Code Here

            selenium.click("formID:refresher_a4j");
            RichFacesAjaxLoadingMode.getInstance().waitForLoad();
            selenium.click("formID:button1");
            String newSource = selenium.getHtmlSource();
            confirmation.okButton().click();
            confirmedPopup.assertVisible(true);
            selenium.click("formID:closer_a4j");
            assertTrue(!newSource.equals(oldSource));
        }
    }
View Full Code Here

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

        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        element("formID:buttonID").click();
        String newValue = popupLayer.text();
        popupLayer.assertVisible(true);
        element("formID:popupCloser").click();
        popupLayer.assertVisible(false);
        popupLayer.assertElementExists();
        assertFalse(newValue.equals(oldValue));
    }

     @Test
View Full Code Here

     @Test
    public void testWithA4JControls() {
        testAppFunctionalPage("/components/popuplayer/popupLayer_a4j.jsf");
        PopupLayerInspector popupLayer = popupLayer("formID:popupLayer_a4j_ID");
        popupLayer.assertElementExists();
        popupLayer.assertVisible(false);
        ElementInspector button = element("formID:button_a4j_ID");
        button.click();
        String oldValue = popupLayer.text();
        popupLayer.assertVisible(true);
        ElementInspector popupCloser = element("formID:popup_a4j_Closer");
View Full Code Here

        popupLayer.assertElementExists();
        popupLayer.assertVisible(false);
        ElementInspector button = element("formID:button_a4j_ID");
        button.click();
        String oldValue = popupLayer.text();
        popupLayer.assertVisible(true);
        ElementInspector popupCloser = element("formID:popup_a4j_Closer");
        popupCloser.click();
        popupLayer.assertVisible(false);
        element("formID:refresher_a4j").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here

        button.click();
        String oldValue = popupLayer.text();
        popupLayer.assertVisible(true);
        ElementInspector popupCloser = element("formID:popup_a4j_Closer");
        popupCloser.click();
        popupLayer.assertVisible(false);
        element("formID:refresher_a4j").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        button.click();
        String newValue = popupLayer.text();
        popupLayer.assertVisible(true);
View Full Code Here

        popupLayer.assertVisible(false);
        element("formID:refresher_a4j").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        button.click();
        String newValue = popupLayer.text();
        popupLayer.assertVisible(true);
        popupCloser.click();
        popupLayer.assertElementExists();
        popupLayer.assertVisible(false);
        assertFalse(newValue.equals(oldValue));
    }
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.