Method: Splinter::Capybara::Actions#select_datetime
- Defined in:
- lib/splinter/capybara/actions.rb
#select_datetime(time, options = {}) ⇒ Object
Selects hour and minute dropdowns for a time attribute.
time - A Time object that will be used to choose options. options - A Hash containing one of:
:id_prefix - the prefix of each dropdown's CSS ID (eg:
:post_publish_at for #post_publish_at_1i, etc)
:from - The text in a label for this dropdown (eg:
"Publish At" for <label for="#publish_at_1i">)
67 68 69 70 71 72 |
# File 'lib/splinter/capybara/actions.rb', line 67 def select_datetime(time, = {}) select_prefix = () select_time time, :id_prefix => select_prefix select_date time, :id_prefix => select_prefix end |