Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.DateChooserInspector.button()


        foldingPanel("fn:dateChooserFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

        DateChooserInspector dateChooser = dateChooser("fn:dateChooserID");
        dateChooser.field().assertElementExists();
        dateChooser.field().assertValue("Jul 30, 2006");
        dateChooser.button().assertElementExists();
    }

     @Test
    public void testDropDownInside() {
        testAppFunctionalPage("/components/foldingpanel/dropDownIn.jsf");
View Full Code Here


        foldingPanel("fn:dropDownFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

        DateChooserInspector dateChooser = dateChooser("fn:dropDownID");
        dateChooser.assertElementExists();
        dateChooser.button().click();
        dateChooser.popup().items().get(1).click();
        dateChooser.field().assertValue("Yellow");
    }

     @Test
View Full Code Here

        DateChooserInspector dateChooser = dateChooser("formID:changeYearMonth");
        ElementInspector submitter = element("formID:submit");
        ElementInspector selectedMonthOutput = element("formID:selectedMonth");

        dateChooser.button().click();

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

        dateChooser.button().click();
View Full Code Here

        dateChooser.button().click();

        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() {
View Full Code Here

        DateChooserInspector dateChooser = dateChooser("formID:changeYearMonth");
        ElementInspector submitter = element("formID:submit");
        ElementInspector selectedYearOutput = element("formID:selectedMonth");

        dateChooser.button().mouseDown();

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

        checkYearChange(dateChooser.calendar(), "2005", selectedYearOutput, submitter, selectedDate);
View Full Code Here

//    assertEquals("", selenium.getValue(noneFieldId));
        noneDateChooser.field().assertValue("");
        checkButtonPairState(noneStyleButton1, noneInfoOutput1, todayStyleButton1, todayInfoOutput1);

        noneDateChooser.button().mouseDown();
        checkTodayNoneButtons(noneDateChooser.calendar(), submitter, noneSelectedDateButton, noneSelectedDateOutput,
                noneDateOutput, todayDate);

        noneSelectedDateButton.click();
        noneDateChooser.field().assertValue(noneSelectedDateOutput.text());
View Full Code Here

        asAttributeOutput.assertText("false");
        ElementInspector asTagOutput = element("formID:asTagOutput");
        asTagOutput.assertText("false");

        DateChooserInspector attributeDateChooser = dateChooser("formID:asAttributeDC");
        attributeDateChooser.button().mouseDown();
        attributeDateChooser.calendar().selectCalendarCell(3, 3);

        DateChooserInspector asTagDateChooser = dateChooser("formID:asTagDC");
        asTagDateChooser.button().mouseDown();
        asTagDateChooser.calendar().selectCalendarCell(3, 3);
View Full Code Here

        DateChooserInspector attributeDateChooser = dateChooser("formID:asAttributeDC");
        attributeDateChooser.button().mouseDown();
        attributeDateChooser.calendar().selectCalendarCell(3, 3);

        DateChooserInspector asTagDateChooser = dateChooser("formID:asTagDC");
        asTagDateChooser.button().mouseDown();
        asTagDateChooser.calendar().selectCalendarCell(3, 3);

        element("formID:submit").clickAndWait();
        asAttributeOutput.assertText("true");
        asTagOutput.assertText("true");
View Full Code Here

        if (makeSubmit) {
            element("formID:submit").clickAndWait();
        }
        DateChooserInspector dateChooser = dateChooser("formID:styled");

        ElementInspector button = dateChooser.button();
        CalendarInspector calendarInspector = dateChooser.calendar();
        ElementInspector calendarBody = calendarInspector.body();
        InputInspector field = dateChooser.field();

        checkEnabledStyles(dateChooser, button, calendarInspector, calendarBody, field);
View Full Code Here

        if (makeSubmit) {
            element("formID:submit").clickAndWait();
        }
        DateChooserInspector dateChooser = dateChooser("formID:styled");

        ElementInspector button = dateChooser.button();
//    CalendarInspector calendarInspector = dateChooser.calendar();
        InputInspector field = dateChooser.field();

        element("formID:makeDisabled").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.