Sha256: da1424ec0eef9091374e2c41a5f7fad1987855560ea3f17928149bef42b0b91c

Contents?: true

Size: 274 Bytes

Versions: 4

Compression:

Stored size: 274 Bytes

Contents

module SimpleFormDatetimepicker
  module CapybaraHelpers
    def fill_in_dtp(locator, options={})
      locator = find('label', text: locator)[:for] if page.has_css?('label', text: locator)
      fill_in locator, :with => ''
      fill_in locator, options
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_form_datetimepicker-0.0.9 lib/simple_form_datetimepicker/capybara_helpers.rb
simple_form_datetimepicker-0.0.8 lib/simple_form_datetimepicker/capybara_helpers.rb
simple_form_datetimepicker-0.0.7 lib/simple_form_datetimepicker/capybara_helpers.rb
simple_form_datetimepicker-0.0.6 lib/simple_form_datetimepicker/capybara_helpers.rb