Package com.thoughtworks.selenium

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


        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/tabbedpane/tabbedPaneAjax.jsf");
        tabbedPane("form1:tp1").tabSet().tabs().get(1).click();
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form1:input2", "");
        selenium.click("form1:submitForm");
        assertTrue(selenium.isTextPresent("\"input2\": Value is required."));
        assertTrue(selenium.isTextPresent("Validation Error"));
    }

    //JSFC-1953
View Full Code Here


        testAppFunctionalPage("/components/foldingpanel/foldingPanelAjax.jsf");
        FoldingPanelInspector fp2 = foldingPanel("form2:fp2");
        fp2.toggle().click();
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form2:input2", "");
        selenium.click("form2:submitForm2");
        waitForPageToLoad();
        fp2.toggle().click();
        selenium.click("form2:submitForm2");
        waitForPageToLoad();
        assertFalse(selenium.isElementPresent("form1:input2"));
View Full Code Here

        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        selenium.type("form2:input2", "");
        selenium.click("form2:submitForm2");
        waitForPageToLoad();
        fp2.toggle().click();
        selenium.click("form2:submitForm2");
        waitForPageToLoad();
        assertFalse(selenium.isElementPresent("form1:input2"));
        assertFalse(selenium.isTextPresent("\"input2\": Value is required."));
        assertFalse(selenium.isTextPresent("Validation Error"));
    }
View Full Code Here

     @Test
    public void disabledTestPagingValidation() throws Exception {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/dataTableAjax.jsf");
        selenium.type("form2:dataTable2:0:inputProfession2", "");
        selenium.click("form2:dataTable2:paginator2--nextPage");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        assertEquals("John Smith", selenium.getValue("form2:dataTable2:0:inputName2"));
        assertTrue(selenium.isTextPresent("\"inputProfession2\": Value is required."));
        assertTrue(selenium.isTextPresent("Validation Error"));
        assertEquals("1", selenium.getValue("form2:dataTable2:paginator2--pageNo"));
View Full Code Here

     @Test
    public void disabledTestPagingClientValidation() throws Exception {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/dataTableAjax.jsf");
        selenium.type("form1:dataTable1:0:inputProfession", "");
        selenium.click("form1:dataTable1:paginator1--nextPage");
        assertTrue(selenium.isTextPresent("\"inputProfession1\": Value is required."));
        assertTrue(selenium.isTextPresent("Validation Error"));
        assertEquals("1", selenium.getValue("form2:dataTable2:paginator2--pageNo"));
    }
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");
        selenium.select(formName + "selectOneMenu", "label=dogs");
View Full Code Here

        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");
        selenium.select(formName + "selectOneMenu", "label=dogs");
        selenium.click("//*[@value='item 1'][@name='" + formName + "selectOneRadio']");
View Full Code Here

        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");
        selenium.select(formName + "selectOneMenu", "label=dogs");
        selenium.click("//*[@value='item 1'][@name='" + formName + "selectOneRadio']");
    }

    private void isPassedStandardInputs(String formName) {
        element(formName + "inputSecretMessage").assertText("");
        element(formName + "inputTextMessage").assertText("");
View Full Code Here

        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();
        selenium.click("link=Data Table");
        waitForPageToLoad();
        assertEquals("r", selenium.getValue("form:allPersons:nameColumn--search_field_o_auto_filter--searchComponent"));
        assertEquals("D", selenium.getValue("form:allPersons:professionColumn--search_field_o_auto_filter--searchComponent"));
View Full Code Here

        selenium.keyPress("form:allPersons:hobbyColumn--drop_down_o_auto_filter--searchComponent::field", "\\13");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();

        selenium.click("link=Validation");
        waitForPageToLoad();
        selenium.click("link=Data Table");
        waitForPageToLoad();
        assertEquals("r", selenium.getValue("form:allPersons:nameColumn--search_field_o_auto_filter--searchComponent"));
        assertEquals("D", selenium.getValue("form:allPersons:professionColumn--search_field_o_auto_filter--searchComponent"));
        assertEquals("a", selenium.getValue("form:allPersons:hobbyColumn--drop_down_o_auto_filter--searchComponent::field"));
    }
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.