Thursday, March 28, 2013

Selenium IDE : Need Date or Time


Selenium IDE

Get the Current Time, Date, Month and Year



Current Time -

 javascript{(new Date().getHours()+" : " + new Date().getMinutes() + " : " + new Date().getSeconds())}


Current year - 

javascript{(new Date()).getFullYear()}


Current Month - 

javascript{(new Date().getMonth()) + 1}


Current date - 

javascript{(new Date().getDate().toString())}

No comments:

Post a Comment