In my user extensions i used this code to check the date but it keeps getting errors:
Selenium.prototype.doCheckDate = function(){
var dates = new Date();
var day = dates.getDate();
if (day < 10){
day = '0' + day;
}
month = dates.getMonth() + 1;
if (month < 10){
month = '0' + month;
}
var year = dates.getFullYear();
var prettyDay = day + '-' + month + '-' + year;
this.browserbot.getUserWindow().checkDate(prettyDay);
}
The error: [error] this.browserbot.getUserWindow(...).checkDate is not a function
Does anybody have an idea how i can check the current date or dates that are in the future? Our systems fills a datefield with a date that is one or two years from the current date.
Thanks for your time and effort in advance. I appreciate it.