This is a migrated thread and some comments may be shown as answers.

WebDriver Test with Date/Time Picker

0 Answers 103 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jesse Sanders
Top achievements
Rank 1
Jesse Sanders asked on 07 May 2011, 08:20 PM
I am using WebDriver to test my application and I am seeing errors only when I am running under WebDriver.  When my page loads with a date/time picker on it under web driver, I am seeing this javascript error:

jQuery("#Birthday").tDatePicker is not a function

When I use fiddler to inspect the HTML that was rendered during the test, I see this:
 <li>
        <label for="Birthday">Birthday</label>
        <div class="t-widget t-datepicker" id="Birthday"><div class="t-picker-wrap"><input class="t-input" id="Birthday-input" name="Birthday" /><span class="t-select"><span class="t-icon t-icon-calendar" title="Open the calendar"></span></span></div></div><script type="text/javascript">
    jQuery('#Birthday').tDatePicker({format:'M/d/yyyy', minDate:new jQuery.telerik.datetime(1861,04,07), maxDate:new jQuery.telerik.datetime(2011,04,07)});
</script>
    </li>

When I am not running the test, I see the same exact html and I don't get the error.  Any thoughts on why I would see this?

Thanks,

Jesse
Tags
Date/Time Pickers
Asked by
Jesse Sanders
Top achievements
Rank 1
Share this question
or