lib/capybara/node/finders.rb in capybara-3.16.2 vs lib/capybara/node/finders.rb in capybara-3.17.0

- old
+ new

@@ -152,27 +152,28 @@ ## # # Find a button on the page. # This can be any \<input> element of type submit, reset, image, button or it can be a - # \<button> element. All buttons can be found by their id, Capbyara.test_id attribute, value, or title. \<button> elements can also be found + # \<button> element. All buttons can be found by their id, name, Capbyara.test_id attribute, value, or title. \<button> elements can also be found # by their text content, and image \<input> elements by their alt attribute # # @overload find_button([locator], **options) - # @param [String] locator id, Capybara.test_id attribute, value, title, text content, alt of image + # @param [String] locator id, name, Capybara.test_id attribute, value, title, text content, alt of image # # @overload find_button(**options) # # @macro waiting_behavior # # @option options [Boolean, Symbol] disabled (false) Match disabled button? # * true - only finds a disabled button # * false - only finds an enabled button # * :all - finds either an enabled or disabled button # @option options [String, Regexp] id Match buttons with the id provided - # @option options [String] title Match buttons with the title provided - # @option options [String] value Match buttons with the value provided + # @option options [String] name Match buttons with the name provided + # @option options [String] title Match buttons with the title provided + # @option options [String] value Match buttons with the value provided # @option options [String, Array<String>, Regexp] class Match buttons that match the class(es) provided # @return [Capybara::Node::Element] The found element # def find_button(locator = nil, **options, &optional_filter_block) find(:button, locator, options, &optional_filter_block) @@ -239,9 +240,10 @@ # @macro system_filters # @option options [Integer] count Exact number of matches that are expected to be found # @option options [Integer] maximum Maximum number of matches that are expected to be found # @option options [Integer] minimum Minimum number of matches that are expected to be found # @option options [Range] between Number of matches found must be within the given range + # @option options [false, true, Numeric] wait (Capybara.default_max_wait_time) Maximum time to wait for matching element to appear. # @overload all([kind = Capybara.default_selector], locator = nil, **options) # @overload all([kind = Capybara.default_selector], locator = nil, **options, &filter_block) # @yieldparam element [Capybara::Node::Element] The element being considered for inclusion in the results # @yieldreturn [Boolean] Should the element be considered in the results? # @return [Capybara::Result] A collection of found elements