def select_date(element, value)
      suffixes = {
        :year   => '1i',
        :month  => '2i',
        :day    => '3i',
        :hour   => '4i',
        :minute => '5i'
      }
      date = value.respond_to?(:year) ? value : Date.parse(value)
      browser.select "jquery=#{element}_#{suffixes[:year]}", date.year
      browser.select "jquery=#{element}_#{suffixes[:month]}", date.strftime('%B')
      browser.select "jquery=#{element}_#{suffixes[:day]}", date.day
    end
def select_date(element, value)
      suffixes = {
        :year   => '1i',
        :month  => '2i',
        :day    => '3i',
        :hour   => '4i',
        :minute => '5i'
      }
      date = value.respond_to?(:year) ? value : Date.parse(value)
      browser.select "jquery=#{element}_#{suffixes[:year]}", date.year
      browser.select "jquery=#{element}_#{suffixes[:month]}", date.strftime('%B')
      browser.select "jquery=#{element}_#{suffixes[:day]}", date.day
    end
Fill in a Rails-ish set of date_select fields