def select_time(time_to_select, options ={})
      time = time_to_select.is_a?(Time) ? time_to_select : Time.parse(time_to_select)

      id_prefix = locate_id_prefix(options) do
        hour_field = FieldByIdLocator.new(@session, dom, /(.*?)_#{DATE_TIME_SUFFIXES[:hour]}$/).locate
        raise NotFoundError.new("No time fields were found") unless hour_field && hour_field.id =~ /(.*?)_4i/
        $1
      end

      select time.hour.to_s.rjust(2,'0'), :from => "#{id_prefix}_#{DATE_TIME_SUFFIXES[:hour]}"
      select time.min.to_s.rjust(2,'0'), :from => "#{id_prefix}_#{DATE_TIME_SUFFIXES[:minute]}"
    end
def select_time(time_to_select, options ={})
      time = time_to_select.is_a?(Time) ? time_to_select : Time.parse(time_to_select)

      id_prefix = locate_id_prefix(options) do
        hour_field = FieldByIdLocator.new(@session, dom, /(.*?)_#{DATE_TIME_SUFFIXES[:hour]}$/).locate
        raise NotFoundError.new("No time fields were found") unless hour_field && hour_field.id =~ /(.*?)_4i/
        $1
      end

      select time.hour.to_s.rjust(2,'0'), :from => "#{id_prefix}_#{DATE_TIME_SUFFIXES[:hour]}"
      select time.min.to_s.rjust(2,'0'), :from => "#{id_prefix}_#{DATE_TIME_SUFFIXES[:minute]}"
    end
Verifies that time elements (hour, minute) exist on the current page
 with the specified values. You can optionally restrict the search to a specific
 time's elements by assigning <tt>options[:from]</tt> the value of the time's
 label. Selects all the time elements with date provided.  The time provided may
 be a string or a Time object.

 Rail's convention is used for detecting the time elements. All elements are
 assumed to have a shared prefix. You may specify the prefix by assigning
 <tt>options[:id_prefix]</tt>.

 Note: Just like Rails' time_select helper this assumes the form is using
 24 hour select boxes, and not 12 hours with AM/PM.

 Examples:
   select_time "9:30"
   select_date "3:30PM", :from => "Party Time"
   select_date Time.parse("10:00PM"), :from => "Event"
   select_date "10:30AM", :id_prefix => 'meeting'