def select_time(time, options)
          time = Time.zone.parse(time)
          base_dom_id = get_base_dom_from_options(options)

          # Rails 7 use HTML5 input type="time" by default. If input is not present fallback to plain select boxes alternative.
          # It's safe to use has_css? without waiting/retry. We already know field's label is visible
          if html5_input_field_present?(base_dom_id)
            fill_in options[:from], with: time
          else
            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
        end
Select a Rails time. Options hash must include from: +label+