Examples of openDatePicker()


Examples of org.xwiki.appwithinminutes.test.po.DateClassFieldEditPane.openDatePicker()

    })
    public void testDatePicker()
    {
        // First select a date using the picker and assert the value of the date input.
        DateClassFieldEditPane dateField = new DateClassFieldEditPane(editor.addField("Date").getName());
        DatePicker datePicker = dateField.openDatePicker();
        datePicker.setYear("2011");
        datePicker.setMonth("October");
        datePicker.setDay("13");
        datePicker.setHour("8 AM");
        datePicker.setMinute("15");
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.DateClassFieldEditPane.openDatePicker()

        // Close the configuration panel to refresh the date field preview.
        dateField.closeConfigPanel();

        // Select a date using the date picker.
        DatePicker datePicker = dateField.openDatePicker();
        // The current date format doesn't include time information.
        Assert.assertFalse(datePicker.hasHourSelector());
        datePicker.setDay("22");
        Calendar now = Calendar.getInstance();
        now.set(Calendar.DAY_OF_MONTH, 22);
View Full Code Here

Examples of org.xwiki.test.ui.po.editor.ObjectEditPane.openDatePicker()

        // Add an object of this class and set its properties.
        String className = getTestClassName() + "." + getTestMethodName();
        ObjectEditPage objectEditor = ObjectEditPage.gotoPage(getTestClassName(), getTestMethodName());
        ObjectEditPane object = objectEditor.addObject(className);
        object.openDatePicker("date").setDay("15");
        object.getUserPicker("author").sendKeys("ad").waitForSuggestions().select("Admin");

        // Save, edit again and check the values.
        object = objectEditor.clickSaveAndView().editObjects().getObjectsOfClass(className).get(0);
        Assert.assertEquals("15", object.openDatePicker("date").getDay());
View Full Code Here

Examples of org.xwiki.test.ui.po.editor.ObjectEditPane.openDatePicker()

        object.openDatePicker("date").setDay("15");
        object.getUserPicker("author").sendKeys("ad").waitForSuggestions().select("Admin");

        // Save, edit again and check the values.
        object = objectEditor.clickSaveAndView().editObjects().getObjectsOfClass(className).get(0);
        Assert.assertEquals("15", object.openDatePicker("date").getDay());
        Assert.assertEquals("Administrator", object.getUserPicker("author").waitToLoad().getAcceptedSuggestions()
            .get(0).getName());
    }
}
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.