tcjgma
Last Updated: February 25, 2016
·
79
· hamza0088
0 w1fpi2kym0zeg55qin27imnlmxyil5vqi r imf2qserm3cnlz0rsapgbapq cn4erdg2dznzie2

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

Say Thanks
Respond
Awesome Job

20838750 ca12 11e7 8395 3d07316c018d
Overijssel,Amsterdam, Arnhem
·
Overijssel, Amsterdam, Arnhem
·
Full Time