module Capybara::Node::Actions

def fill_in(locator = nil, with:, currently_with: nil, fill_options: {}, **find_options)

Returns:
  • (Capybara::Node::Element) - The element filled in

Options Hash: (**options)
  • fill_options (Hash) -- Driver specific options regarding how to fill fields (Defaults come from {Capybara.configure default_set_options})
  • class (String, Array, Regexp) -- Match fields that match the class(es) provided
  • placeholder (String) -- Match fields that match the placeholder attribute
  • name (String) -- Match fields that match the name attribute
  • id (String, Regexp) -- Match fields that match the id attribute
  • multiple (Boolean) -- Match fields that can have multiple values?
  • currently_with (String) -- The current value property of the field to fill in

Parameters:
  • with: (String) -- The value to fill in
  • options (Hash) --
  • locator (String) -- Which field to fill in

Overloads:
  • fill_in([locator], with:, **options)
def fill_in(locator = nil, with:, currently_with: nil, fill_options: {}, **find_options)
  find_options[:with] = currently_with if currently_with
  find_options[:allow_self] = true if locator.nil?
  find(:fillable_field, locator, **find_options).set(with, **fill_options)
end