Last Updated: February 25, 2016
·
225
· hamza0088

Manipulate time and then use page object to select a month from now

How to add a month from now?

now = Time.now
future = now + (60 * 60 * 24 * 30)
next_month = future.strftime("%B")
*you can use the abbreviated month -> %b *

example
include PageObject

selectlist(:dropdowntest, :id => 'id_123')

dropdowntest=nextmonth