Package com.thoughtworks.selenium

Examples of com.thoughtworks.selenium.Selenium.click()


                if (i == 23) selenium.type("formID:dataTableID:dataTablePaginator_A4J--pageNo", "3");
                OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
                selenium.keyPress("formID:dataTableID:dataTablePaginator_A4J--pageNo", "\\13");
            }
        }
        selenium.click("formID:refresher");
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.keyPress("formID:dataTableID:dataTablePaginator_A4J--pageNo", "\\8");
        selenium.type("formID:dataTableID:dataTablePaginator_A4J--pageNo", "1");
        selenium.keyPress("formID:dataTableID:dataTablePaginator_A4J--pageNo", "\\13");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here


                if (i == 23) selenium.type("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "3");
                OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
                selenium.keyPress("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "\\13");
            }
        }
        selenium.click("formID:refresher");
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.keyPress("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "\\8");
        selenium.type("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "1");
        selenium.keyPress("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "\\13");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here

     @Test
    public void testRowKeyFunctionality() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/datatableRowKey.jsf");

        selenium.click("formID:withoutRowKeyDataTableID:0:withoutRowKeyDataTableID_firstBody");
        selenium.click("formID:withDataTableID:0:withRowKeyDataTableID_firstBody");
        dataTablePaginator("formID:withoutRowKeyDataTableID:dataTablePaginator_A4J").nextPage()
                .clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        dataTablePaginator("formID:withDataTableID:dataTablePaginator_A4J").nextPage()
                .clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
View Full Code Here

    public void testRowKeyFunctionality() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/datatableRowKey.jsf");

        selenium.click("formID:withoutRowKeyDataTableID:0:withoutRowKeyDataTableID_firstBody");
        selenium.click("formID:withDataTableID:0:withRowKeyDataTableID_firstBody");
        dataTablePaginator("formID:withoutRowKeyDataTableID:dataTablePaginator_A4J").nextPage()
                .clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        dataTablePaginator("formID:withDataTableID:dataTablePaginator_A4J").nextPage()
                .clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        int withoutRowKeyDataTableIndex = dataTable("formID:withoutRowKeyDataTableID").selectedRowIndex();
View Full Code Here

        assertTrue(selenium.isTextPresent("onmousemove action"));
        assertTrue(selenium.isTextPresent("onmousemove works"));
        assertTrue(selenium.isTextPresent("mousemove"));

        // onkeydown
        selenium.click("onkeydown");
        selenium.keyDown("fn:onkeydown_conf", "13");
        confirmation("fn:onkeydown_conf").okButton().click();
        assertTrue(selenium.isTextPresent("onkeydown action"));
        assertTrue(selenium.isTextPresent("onkeydown works"));
        assertTrue(selenium.isTextPresent("onkeydown"));
View Full Code Here

        assertTrue(selenium.isTextPresent("onkeydown action"));
        assertTrue(selenium.isTextPresent("onkeydown works"));
        assertTrue(selenium.isTextPresent("onkeydown"));

        // onkeypress
        selenium.click("onkeypress");
        selenium.keyPress("fn:onkeypress_conf", "13");
        confirmation("fn:onkeypress_conf").okButton().click();
        assertTrue(selenium.isTextPresent("onkeypress action"));
        assertTrue(selenium.isTextPresent("onkeypress works"));
        assertTrue(selenium.isTextPresent("onkeypress"));
View Full Code Here

        assertTrue(selenium.isTextPresent("onkeypress action"));
        assertTrue(selenium.isTextPresent("onkeypress works"));
        assertTrue(selenium.isTextPresent("onkeypress"));

        // onkeyup
        selenium.click("onkeyup");
        selenium.keyUp("fn:onkeyup_conf", "13");
        confirmation("fn:onkeyup_conf").okButton().click();
        assertTrue(selenium.isTextPresent("onkeyup action"));
        assertTrue(selenium.isTextPresent("onkeyup works"));
        assertTrue(selenium.isTextPresent("onkeyup"));
View Full Code Here

     @Test
    public void testOnblurOnfocusEvents() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/OnfocusOnblurEvents.jsf");
        waitForPageToLoad();
        selenium.click("fn:sixth:8:firstColumn_body");
        selenium.getEval("var el = O$('click'); el.focus();");
        assertTrue(selenium.isTextPresent("focus"));
        assertTrue(selenium.isTextPresent("blur"));
        assertTrue(selenium.isTextPresent("onfocus works"));
        assertTrue(selenium.isTextPresent("onblur works"));
View Full Code Here

        testAppFunctionalPage("/components/confirmation/confirmation_a4j.jsf");
        Selenium selenium = getSelenium();
        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");
View Full Code Here

        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();
            sleep(500);
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.