Selenium IDE: How do I get today's date?

Viewed 29937

I'm testing my web application using Selenium IDE. There are test cases in which I have to assert that today's date appears on the page. I cannot hard code today's date in the test because today's date changes every day. How do I get the current day, month & year in Selenium IDE?

5 Answers

I am a bit confused about the answers here. From my side, what I wanted to do is to include the current date in an input text-area.

Here is how I did it: use the date as the value of an input text

Related