class Capybara::Selenium::Node::SettableValue
SettableValue encapsulates time/date field formatting
def dateable?
def dateable? !value.is_a?(String) && value.respond_to?(:to_date) end
def initialize(value)
def initialize(value) @value = value end
def timeable?
def timeable? !value.is_a?(String) && value.respond_to?(:to_time) end
def to_date_str
def to_date_str value.to_date.iso8601 end
def to_datetime_str
def to_datetime_str value.to_time.strftime('%Y-%m-%dT%H:%M') end
def to_s
def to_s value.to_s end
def to_time_str
def to_time_str value.to_time.strftime('%H:%M') end