Package org.seleniuminspector.openfaces

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


        element("//img[1]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

        ConfirmationInspector confirmation = confirmation("formID:openfaces_internal_sessionexpiration_confirmation");
        confirmation.assertElementExists();
        confirmation.okButton().assertElementExists();

        confirmation.okButton().clickAndWait();
        confirmation.assertElementExists(false);

//     Selenium selenium = getSelenium();
View Full Code Here


        ConfirmationInspector confirmation = confirmation("formID:openfaces_internal_sessionexpiration_confirmation");
        confirmation.assertElementExists();
        confirmation.okButton().assertElementExists();

        confirmation.okButton().clickAndWait();
        confirmation.assertElementExists(false);

//     Selenium selenium = getSelenium();
//    testAppFunctionalPage("/components/sessionexpiration/rawTesting.jsf");
//
View Full Code Here

        button.click();

        ConfirmationInspector confirmation = confirmation("form1:conf1");
        confirmation.cancelButton().click();
        button.click();
        confirmation.okButton().click();
        assertEquals("!", window().document().getAlert());
        acceptAlert();
    }
}
View Full Code Here

        element("confirmationForm:buttonInvoker").click();
        ElementInspector buttonPopup = element("confirmationForm:buttonPopup");
        buttonPopup.assertVisible(false);
        ConfirmationInspector buttonConfirmation = confirmation("confirmationForm:buttonConfirmation");
        buttonConfirmation.assertVisible(true);
        buttonConfirmation.okButton().click();
        buttonPopup.assertVisible(true);
        buttonConfirmation.assertVisible(false);

        element("confirmationForm:linkInvoker").click();
        ElementInspector linkPopup = element("confirmationForm:linkPopup");
View Full Code Here

        element("confirmationForm:linkInvoker").click();
        ElementInspector linkPopup = element("confirmationForm:linkPopup");
        linkPopup.assertVisible(false);
        ConfirmationInspector linkConfirmation = confirmation("confirmationForm:linkConfirmation");
        linkConfirmation.assertVisible(true);
        linkConfirmation.okButton().click();
        linkPopup.assertVisible(true);
        linkConfirmation.assertVisible(false);

        getDriver().findElement(By.id("textInvoker")).click();
        ElementInspector textPopup = element("confirmationForm:textPopup");
View Full Code Here

        getDriver().findElement(By.id("textInvoker")).click();
        ElementInspector textPopup = element("confirmationForm:textPopup");
        textPopup.assertVisible(false);
        ConfirmationInspector textConfirmation = confirmation("confirmationForm:textConfirmation");
        textConfirmation.assertVisible(true);
        textConfirmation.okButton().click();
        textPopup.assertVisible(true);
        textConfirmation.assertVisible(false);

        element("confirmationForm:imageInvoker").evalExpression("ondblclick.call(this, this)");
        ElementInspector imagePopup = element("confirmationForm:imagePopup");
View Full Code Here

        ElementInspector imagePopup = element("confirmationForm:imagePopup");
        imagePopup.assertVisible(false);
        ConfirmationInspector imageConfirmation = confirmation("confirmationForm:imageConfirmation");
//        imageConfirmation.assertVisible();
        imageConfirmation.assertVisible(true);
        imageConfirmation.okButton().click();
        imagePopup.assertVisible(true);
        imageConfirmation.assertVisible(false);

        getDriver().findElement(By.id("message_input")).clear();
        getDriver().findElement(By.id("message_input")).sendKeys("Are you sure?");
View Full Code Here

            getDriver().findElement(By.xpath("//*[@id='confirmationForm:editableConfirmation']//*[contains(text(), 'Think once again before doing it')]"));
            assertTrue(false);
        } 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();
View Full Code Here

        } 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

        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

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.