Selecting a past or future date based on current date in calendar object
I am facing an issue where I want to be able to select a future (or past) date in a calendar date picker object:
The issue is when I select a date, it maps an object as the day (the 21st) so the test would potentially fail on future runs:
I can currently verify the current date by using this function:
aqDateTime.AddTime(aqDateTime.Today(), 0, 0, 0, 0)
But I need a way to programmatically interact with this object and set the date x days ahead of whatever the current date is.
I used to be able to do this with via the wDate [Set] operation and use a code expression to set the date:
aqDateTime.AddTime(aqDateTime.Today(), -7, 0, 0, 0)
aqDateTime.Today()
It seems like the wDate function is deprecated for Use XPath and CSS selectors for web objects projects which is a shame because it used to work very well.