Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.
Then you just need to pass your date to the function.
How to install Selenium IDE and loops for quick automated testing.
Get Selenium IDE from http://seleniumhq.org
Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…