Examples of okButton()


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

        } catch (NoSuchElementException e) {}

        ConfirmationInspector editableConfirmation = confirmation("confirmationForm:editableConfirmation");
        editableConfirmation.okButton().assertValue("Confirm");
        editableConfirmation.cancelButton().assertValue("Decline");
        editableConfirmation.okButton().click();
//        WebElement okButton =
//                getDriver().findElement(By.xpath(editableConfirmation.okButton().getXPath())).click();
//        Actions click = new Actions(getDriver()).moveToElement(okButton).click();
//        click.build().perform();
        assertTrue(window().document().isAlertPresent());
View Full Code Here

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

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

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

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

        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

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

            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

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

        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

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

        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

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

        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

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

        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

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

        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
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.