# File lib/cucumber/rails/capybara/select_dates_and_times.rb, line 14 def select_time(field, options = {}) time = Time.zone.parse(options[:with]) base_dom_id = get_base_dom_id_from_label_tag(field) find(:xpath, "//select[@id='#{base_dom_id}_4i']").select(time.hour.to_s.rjust(2, '0')) find(:xpath, "//select[@id='#{base_dom_id}_5i']").select(time.min.to_s.rjust(2, '0')) end