Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.ConfirmationInspector.okButton()


            selenium.click("formID:refresher");
            RichFacesAjaxLoadingMode.getInstance().waitForLoad();
            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


        ConfirmationInspector confirmation = confirmation("formID:confirmation_a4j_ID");
        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");
View Full Code Here

            selenium.click("formID:closer_a4j");
            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

        testAppFunctionalPage("/components/confirmation/confirmationTestInvokers.jsf");
        element("form1:linkInvokerID2").click();
        ConfirmationInspector confirmation = confirmation("form1:setConfirmationTexts");
        confirmation.message().assertText("header custom text");
        confirmation.details().assertText("details custom text");
        confirmation.okButton().assertValue("accept");
        confirmation.cancelButton().assertValue("decline");
        confirmation.okButton().click();
    }

    //todo: uncomment this test if JSFC-2683 is fixed
View Full Code Here

        ConfirmationInspector confirmation = confirmation("form1:setConfirmationTexts");
        confirmation.message().assertText("header custom text");
        confirmation.details().assertText("details custom text");
        confirmation.okButton().assertValue("accept");
        confirmation.cancelButton().assertValue("decline");
        confirmation.okButton().click();
    }

    //todo: uncomment this test if JSFC-2683 is fixed
    @Ignore
     @Test
View Full Code Here

        confirmation.details().assertStyle("color: red");
        confirmation.iconArea().assertStyle("border: 1px solid orange");
        confirmation.message().assertStyle("color: blue");
        confirmation.content().assertStyle("background: beige");
        confirmation.modalLayer().assertStyle("background: gray");
        confirmation.okButton().assertStyle("border: 1px dashed pink");

        confirmation.okButton().mouseOver();
        confirmation.okButton().mouseMove();

        confirmation.okButton().assertStyle("border: 3px dashed pink");
View Full Code Here

        confirmation.message().assertStyle("color: blue");
        confirmation.content().assertStyle("background: beige");
        confirmation.modalLayer().assertStyle("background: gray");
        confirmation.okButton().assertStyle("border: 1px dashed pink");

        confirmation.okButton().mouseOver();
        confirmation.okButton().mouseMove();

        confirmation.okButton().assertStyle("border: 3px dashed pink");
        confirmation.buttonArea().assertStyle("background: azure");
        confirmation.assertStyle("border: 2px dotted blue");
View Full Code Here

        confirmation.content().assertStyle("background: beige");
        confirmation.modalLayer().assertStyle("background: gray");
        confirmation.okButton().assertStyle("border: 1px dashed pink");

        confirmation.okButton().mouseOver();
        confirmation.okButton().mouseMove();

        confirmation.okButton().assertStyle("border: 3px dashed pink");
        confirmation.buttonArea().assertStyle("background: azure");
        confirmation.assertStyle("border: 2px dotted blue");
View Full Code Here

        confirmation.okButton().assertStyle("border: 1px dashed pink");

        confirmation.okButton().mouseOver();
        confirmation.okButton().mouseMove();

        confirmation.okButton().assertStyle("border: 3px dashed pink");
        confirmation.buttonArea().assertStyle("background: azure");
        confirmation.assertStyle("border: 2px dotted blue");

        confirmation.okButton().mouseOut();
        confirmation.cancelButton().mouseOver();
View Full Code Here

        confirmation.okButton().assertStyle("border: 3px dashed pink");
        confirmation.buttonArea().assertStyle("background: azure");
        confirmation.assertStyle("border: 2px dotted blue");

        confirmation.okButton().mouseOut();
        confirmation.cancelButton().mouseOver();
        confirmation.cancelButton().mouseMove();

        confirmation.cancelButton().assertStyle("border: 3px dashed black");
        confirmation.details().assertStyle("font-weight: bold");
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.