module Capybara::Node::Actions
def fill_in(locator = nil, with:, fill_options: {}, **options)
-
(Capybara::Node::Element)- The element filled_in
Options Hash:
(**options)-
:class(String, Array) -- 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) -- 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 -
:fill_options(Hash) -- Driver specific options regarding how to fill fields -
:with(String) -- The value to fill in - required
Parameters:
-
options(Hash) -- -
locator(String) -- Which field to fill in
Overloads:
-
fill_in([locator], options={})
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) end