module SimpleFormDatetimepicker::CapybaraHelpers
Public Instance Methods
fill_in_dtp(locator, options={})
click to toggle source
# File lib/simple_form_datetimepicker/capybara_helpers.rb, line 3 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