Package com.thoughtworks.selenium

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


    }

    private void fillDataStandardInputs(String formName) {
        Selenium selenium = getSelenium();
        selenium.type(formName + "inputSecret", "password");
        selenium.type(formName + "inputText", "item 1");
        selenium.type(formName + "inputTextarea", "text");
        selenium.click(formName + "selectBooleanCheckbox");
        selenium.click("//*[@value='item 1'][@name='" + formName + "selectManyCheckbox']");
        selenium.addSelection(formName + "selectManyListbox", "label=dogs");
        selenium.addSelection(formName + "selectManyMenu", "label=dogs");
View Full Code Here


    private void fillDataStandardInputs(String formName) {
        Selenium selenium = getSelenium();
        selenium.type(formName + "inputSecret", "password");
        selenium.type(formName + "inputText", "item 1");
        selenium.type(formName + "inputTextarea", "text");
        selenium.click(formName + "selectBooleanCheckbox");
        selenium.click("//*[@value='item 1'][@name='" + formName + "selectManyCheckbox']");
        selenium.addSelection(formName + "selectManyListbox", "label=dogs");
        selenium.addSelection(formName + "selectManyMenu", "label=dogs");
        selenium.select(formName + "selectOneListbox", "label=dogs");
View Full Code Here

        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();

        selenium.select("form:allPersons:lifestyleColumn--combo_box_o_auto_filter", "label=Extreme");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form:allPersons:nameColumn--search_field_o_auto_filter--searchComponent", "r");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form:allPersons:professionColumn--search_field_o_auto_filter--searchComponent", "D");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form:allPersons:hobbyColumn--drop_down_o_auto_filter--searchComponent::field", "a");
        selenium.keyPress("form:allPersons:hobbyColumn--drop_down_o_auto_filter--searchComponent::field", "\\13");
View Full Code Here

        selenium.select("form:allPersons:lifestyleColumn--combo_box_o_auto_filter", "label=Extreme");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form:allPersons:nameColumn--search_field_o_auto_filter--searchComponent", "r");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form:allPersons:professionColumn--search_field_o_auto_filter--searchComponent", "D");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form:allPersons:hobbyColumn--drop_down_o_auto_filter--searchComponent::field", "a");
        selenium.keyPress("form:allPersons:hobbyColumn--drop_down_o_auto_filter--searchComponent::field", "\\13");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here

        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form:allPersons:nameColumn--search_field_o_auto_filter--searchComponent", "r");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form:allPersons:professionColumn--search_field_o_auto_filter--searchComponent", "D");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form:allPersons:hobbyColumn--drop_down_o_auto_filter--searchComponent::field", "a");
        selenium.keyPress("form:allPersons:hobbyColumn--drop_down_o_auto_filter--searchComponent::field", "\\13");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();

        selenium.click("link=Validation");
        waitForPageToLoad();
View Full Code Here

        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[6]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);

        liveDemoPage("/datatable/DataTable_handlingLargeData.jsf");
        selenium.type("form:colorTable:name--search_field_o_auto_filter--searchComponent", "white");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        tr7Element.assertElementExists(false);
        liveDemoPage("/datatable/DataTable_handlingLargeData.jsf");
        dataTablePaginator("form:colorTable:paginator").nextPage().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
View Full Code Here

     @Test
    public void _testDataTableReRenderThroughA4J() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/dataTable_a4j.jsf");
        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();
        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: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");
                OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
                selenium.keyPress("formID:dataTableID:dataTablePaginator_A4J--pageNo", "\\13");
            }
        }
View Full Code Here

            if (i == 11 || i == 23) {
                j = 0;
                n = 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");
                OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
                selenium.keyPress("formID:dataTableID:dataTablePaginator_A4J--pageNo", "\\13");
            }
        }
        selenium.click("formID:refresher");
View Full Code Here

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