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

      options[:id_prefix] ||= (options[:from] ? FieldByIdLocator.new(@session, dom, options[:from]).locate : nil)

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

      options[:id_prefix] ||= (options[:from] ? FieldByIdLocator.new(@session, dom, options[:from]).locate : nil)

      select_date time, options
      select_time time, options
    end
Verifies and selects all the date and time elements on the current page.
 See #select_time and #select_date for more details and available options.

 Examples:
   select_datetime "January 23, 2004 10:30AM"
   select_datetime "April 26, 1982 7:00PM", :from => "Birthday"
   select_datetime Time.parse("December 25, 2000 15:30"), :from => "Event"
   select_datetime "April 26, 1982 5:50PM", :id_prefix => 'birthday'