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
Written by Hamza Ismail Razzak
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#