Beispiel #1
0
        public void SetDateKendoDatePickerCustomControl()
        {
            manager.ActiveBrowser.NavigateTo("http://demos.telerik.com/kendo-ui/datepicker/index");
            KendoDatePicker datePicket = new KendoDatePicker("datepicker");

            datePicket.SetDate(DateTime.Now);
        }
Beispiel #2
0
        private static void TestControl <TPage>(KendoDatePicker <TPage> control)
            where TPage : PageObject <TPage>
        {
            control.Should.BeEnabled();
            control.Should.Not.BeReadOnly();

            DateTime value1 = new DateTime(2018, 7, 11);

            control.Set(value1);
            control.Should.Equal(value1);

            AtataContext.Current.Driver.Perform(x => x.KeyDown(Keys.Shift).SendKeys(Keys.Tab).KeyUp(Keys.Shift));
            control.Should.Equal(value1);

            DateTime value2 = new DateTime(2019, 12, 31);

            control.Set(value2);
            control.Should.Equal(value2);

            DateTime value3 = new DateTime(1995, 5, 19);

            control.Set(value3);
            control.Should.Equal(value3);

            control.Clear();
            control.Should.BeNull();
        }
    public void SetDateKendoDatePickerCustomControl()
    {
        _driver.Navigate().GoToUrl("http://demos.telerik.com/kendo-ui/datepicker/index");
        var datePicket = new KendoDatePicker(_driver, "datepicker");

        datePicket.SetDate(DateTime.Now);
    }