March 20, 2011 by Alex
And I fill in "2010-01-01 12:45:00" for "Date"
Long story short, it took me almost a day to figure out how to do this. I played around with a lot of variations, but in the end this is what you have to do:
In you Cucumber feature you can then call:
When I fill in the time "2010-01-01 12:00" for "Date"
What the above code essentially does is open the date picker and click on all the required buttons. Just as important (and that was the tricky part) it asynchronously waits for the necessary events (open/close date picker, date shows up in text field). Enjoy.