parameter cleanup

This commit is contained in:
Thomas Walpole 2018-07-04 10:02:02 -07:00
parent be1d05d3aa
commit 3b5f2c9428
1 changed files with 3 additions and 3 deletions

View File

@ -80,9 +80,9 @@ module Capybara
# @option options [Hash] fill_options Driver specific options regarding how to fill fields (Defaults come from Capybara.default_set_options)
#
# @return [Capybara::Node::Element] The element filled_in
def fill_in(locator = nil, with:, fill_options: {}, **options)
options[:with] = options.delete(:currently_with) if options.key?(:currently_with)
find(:fillable_field, locator, options).set(with, fill_options)
def fill_in(locator = nil, with:, currently_with: nil, fill_options: {}, **find_options)
find_options[:with] = currently_with if currently_with
find(:fillable_field, locator, find_options).set(with, fill_options)
end
# @!macro label_click