Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.DateChooserInspector


        testAppFunctionalPage("/components/datechooser/dateChooserStyling.jsf");

        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


        testAppFunctionalPage("/components/datechooser/dateChooserStyling.jsf");

        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();

        sleep(500);
        // disabledButtonImageUrl="../dropdown/dropdown_arrow_disabled.gif"
        button.childNodes().get(0).assertAttributeStartsWith("src", "../dropdown/dropdown_arrow_disabled.gif");

        // disabledButtonStyle="background: pink;"
        button.assertStyle("background: pink");

        // disabledFieldStyle="background: yellow; border: 2px solid green;"
        field.assertStyle("border: 2px solid green; background: yellow");

        // disabledStyle="width: 400px;"
        dateChooser.assertWidth(400);
    }
View Full Code Here

TOP

Related Classes of org.seleniuminspector.openfaces.DateChooserInspector

Copyright © 2018 www.massapicom. 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.