Package com.thoughtworks.selenium

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


            }
            if (i == 11 || i == 23) {
                k = 0;
                m = 1;
                selenium.keyPress("formID:dataTableID:dataTablePaginator_A4J--pageNo", "\\8");
                if (i == 11) selenium.type("formID:dataTableID:dataTablePaginator_A4J--pageNo", "2");
                if (i == 23) selenium.type("formID:dataTableID:dataTablePaginator_A4J--pageNo", "3");
                selenium.keyPress("formID:dataTableID:dataTablePaginator_A4J--pageNo", "\\13");
                assertNoAlert("No alert expected, but was: ");
                OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
                assertNoAlert("No alerts are expected when performing ajax request, but the following alert appeared: ");
View Full Code Here


            if (i == 11 || i == 23) {
                k = 0;
                m = 1;
                selenium.keyPress("formID:dataTableID:dataTablePaginator_A4J--pageNo", "\\8");
                if (i == 11) selenium.type("formID:dataTableID:dataTablePaginator_A4J--pageNo", "2");
                if (i == 23) selenium.type("formID:dataTableID:dataTablePaginator_A4J--pageNo", "3");
                selenium.keyPress("formID:dataTableID:dataTablePaginator_A4J--pageNo", "\\13");
                assertNoAlert("No alert expected, but was: ");
                OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
                assertNoAlert("No alerts are expected when performing ajax request, but the following alert appeared: ");
            }
View Full Code Here

     @Test
    public void _testDataTableWithA4JInside() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/dataTable_a4j.jsf");
        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();
        String[] oldTableValues = new String[36];
        int j = 0;
        int n = 1;
View Full Code Here

            }
            if (i == 11 || i == 23) {
                j = 0;
                n = 1;
                selenium.keyPress("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "\\8");
                if (i == 11) selenium.type("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "2");
                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");
            }
        }
View Full Code Here

            if (i == 11 || i == 23) {
                j = 0;
                n = 1;
                selenium.keyPress("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "\\8");
                if (i == 11) selenium.type("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "2");
                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");
View Full Code Here

            }
        }
        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();
        String[] newTableValues = new String[36];
        int k = 0;
        int m = 1;
View Full Code Here

            }
            if (i == 11 || i == 23) {
                k = 0;
                m = 1;
                selenium.keyPress("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "\\8");
                if (i == 11) selenium.type("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "2");
                if (i == 23) selenium.type("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "3");
                selenium.keyPress("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "\\13");
                OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
            }
        }
View Full Code Here

            if (i == 11 || i == 23) {
                k = 0;
                m = 1;
                selenium.keyPress("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "\\8");
                if (i == 11) selenium.type("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "2");
                if (i == 23) selenium.type("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "3");
                selenium.keyPress("formID:dataTable_a4j_ID:dataTable_a4j_IDPaginator_A4J--pageNo", "\\13");
                OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
            }
        }
View Full Code Here

        Selenium selenium = getSelenium();
        selenium.click("form:withInputTextInside");
        selenium.isVisible("form:confirm_withInputTextInside");
        //try to type in caption
        assertEquals("Caption input", selenium.getText("form:captionInputID"));
        selenium.type("form:captionInputID", "Test ");
        assertEquals("Test Caption input", selenium.getText("form:captionInputID"));

        //try to type in icon
        assertEquals("Icon input", selenium.getText("form:iconInputID"));
        selenium.type("form:iconInputID", "Test ");
View Full Code Here

        selenium.type("form:captionInputID", "Test ");
        assertEquals("Test Caption input", selenium.getText("form:captionInputID"));

        //try to type in icon
        assertEquals("Icon input", selenium.getText("form:iconInputID"));
        selenium.type("form:iconInputID", "Test ");
        assertEquals("Test Icon input", selenium.getText("form:iconInputID"));

        //try to type in message
        assertEquals("Message input", selenium.getText("form:messageInputID"));
        selenium.type("form:messageInputID", "Test ");
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.