Package com.thoughtworks.selenium

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


        assertFalse(isMessageTextPresent(messageText));

        selenium.click(validateButtonLocator);

        assertFalse(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "asd12313");

        selenium.click(validateButtonLocator);
        assertTrue(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "123");
View Full Code Here


        assertFalse(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "asd12313");

        selenium.click(validateButtonLocator);
        assertTrue(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "123");

        selenium.click(validateButtonLocator);
        assertFalse(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "123.5");
View Full Code Here

        assertTrue(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "123");

        selenium.click(validateButtonLocator);
        assertFalse(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "123.5");

        selenium.click(validateButtonLocator);
        assertFalse(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "123.5asd");
View Full Code Here

        assertFalse(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "123.5");

        selenium.click(validateButtonLocator);
        assertFalse(isMessageTextPresent(messageText));
        selenium.type(validatorFieldLocator, "123.5asd");

        selenium.click(validateButtonLocator);
        assertTrue(isMessageTextPresent(messageText));
    }
View Full Code Here

     @Test
    public void disabledTestFPClientValidation() throws Exception {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/foldingpanel/foldingPanelAjax.jsf");
        foldingPanel("form1:fp1").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        selenium.type("form1:input1", "");
        selenium.click("form1:sumbitForm1");
        assertTrue(selenium.isTextPresent("\"input1\": Value is required."));
        assertTrue(selenium.isTextPresent("Validation Error"));
    }
View Full Code Here

    public void disabledTestTPClientValidation() throws Exception {
        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"));
    }
View Full Code Here

        Selenium selenium = getSelenium();
        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();
View Full Code Here

    @Ignore
     @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"));
View Full Code Here

    @Ignore
     @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

        isPassedStandardInputs(clientValidationFormName);
    }

    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");
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.