Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.text()


        assertTrue(selenium.getText(formName + "RequiredMessage").contains("Validation Error"));

        ElementInspector doubleRangeMsg = element(formName + "ValidDRMessage");
        assertTrue(
                doubleRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 0.001 and 0.999.") ||
                        doubleRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 0,001 and 0,999.") ||
                        doubleRangeMsg.text().equals("Validation Error"));

        ElementInspector longRangeMsg = element(formName + "ValidLRMessage");
        assertTrue(
                longRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 10 and 100.") ||
View Full Code Here


        ElementInspector doubleRangeMsg = element(formName + "ValidDRMessage");
        assertTrue(
                doubleRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 0.001 and 0.999.") ||
                        doubleRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 0,001 and 0,999.") ||
                        doubleRangeMsg.text().equals("Validation Error"));

        ElementInspector longRangeMsg = element(formName + "ValidLRMessage");
        assertTrue(
                longRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 10 and 100.") ||
                        longRangeMsg.text().equals("Validation Error"));
View Full Code Here

                        doubleRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 0,001 and 0,999.") ||
                        doubleRangeMsg.text().equals("Validation Error"));

        ElementInspector longRangeMsg = element(formName + "ValidLRMessage");
        assertTrue(
                longRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 10 and 100.") ||
                        longRangeMsg.text().equals("Validation Error"));


        element(formName + "ValidLMessage").assertContainsText("Validation Error");
        if (formName.equals("serverValidation:")) {
View Full Code Here

                        doubleRangeMsg.text().equals("Validation Error"));

        ElementInspector longRangeMsg = element(formName + "ValidLRMessage");
        assertTrue(
                longRangeMsg.text().contains("Validation Error: Specified attribute is not between the expected values of 10 and 100.") ||
                        longRangeMsg.text().equals("Validation Error"));


        element(formName + "ValidLMessage").assertContainsText("Validation Error");
        if (formName.equals("serverValidation:")) {
            assertSubstringIgnoreCase("serverValidation:intConv: 'Non-integer value' must be a number consisting of one or more digits.", selenium.getText(formName + "IntConvMessage"));
View Full Code Here

     @Test
    public void testReRenderThroughA4J() {
        testAppFunctionalPage("/components/datechooser/dateChooser_a4j.jsf");

        ElementInspector dataChooser = element("formID:dateChooserID");
        String oldValue = dataChooser.text();
        element("formID:refresher").click();

        RichFacesAjaxLoadingMode.getInstance().waitForLoad();

        String newValue = dataChooser.text();
View Full Code Here

        String oldValue = dataChooser.text();
        element("formID:refresher").click();

        RichFacesAjaxLoadingMode.getInstance().waitForLoad();

        String newValue = dataChooser.text();
        assertFalse(newValue.equals(oldValue));
    }

     @Test
    public void testChangingSelectedDate() {
View Full Code Here

        prepareCheckingMonthChange(dateChooser.calendar(), "December", "January", "December", 2, new int[]{1, 2});
        dateChooser.field().assertValue(selectedDate);

        dateChooser.button().click();
        checkMonthChange(dateChooser.calendar(), "March", selectedMonthOutput, submitter, selectedDate);
        dateChooser.field().assertValue(selectedMonthOutput.text());
    }

    public void testYearChange() {
        testAppFunctionalPage("/components/datechooser/dateChooserChangeDateMonthYear.jsf");
View Full Code Here

        prepareCheckingYearChange(dateChooser.calendar(), "2007", "2008", "2007", 2, new int[]{1, 2});
        dateChooser.field().assertValue(selectedDate);

        checkYearChange(dateChooser.calendar(), "2005", selectedYearOutput, submitter, selectedDate);
        dateChooser.field().assertValue(selectedYearOutput.text());
    }

     @Test
    public void testTodayNoneButtons() {
        testAppFunctionalPage("/components/datechooser/dateChooserTodayNoneButton.jsf");
View Full Code Here

    public void testValueChangeListener() {
        closeBrowser();
        testAppFunctionalPage("/components/twolistselection/TLSValueChangeListener.jsf");

        ElementInspector asTagOutput = element("formID:asTagOutput");
        boolean initialValueAsAttribute = Boolean.parseBoolean(asTagOutput.text());
        ElementInspector asAttributeOutput = element("formID:asAttributeOutput");
        boolean initialValueAsTag = Boolean.parseBoolean(asAttributeOutput.text());

        element("asTagChanger").click();
        element("asAttributeChanger").click();
View Full Code Here

        testAppFunctionalPage("/components/twolistselection/TLSValueChangeListener.jsf");

        ElementInspector asTagOutput = element("formID:asTagOutput");
        boolean initialValueAsAttribute = Boolean.parseBoolean(asTagOutput.text());
        ElementInspector asAttributeOutput = element("formID:asAttributeOutput");
        boolean initialValueAsTag = Boolean.parseBoolean(asAttributeOutput.text());

        element("asTagChanger").click();
        element("asAttributeChanger").click();

        element("formID:submit").clickAndWait();
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.