From 3bb555adb65ec1b50fd40ca369813fca4080c24d Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Sun, 22 Oct 2017 12:07:11 -0700 Subject: [PATCH] update documentation for click_link_or_button - Issue #1929 [ci skip] --- lib/capybara/node/actions.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/capybara/node/actions.rb b/lib/capybara/node/actions.rb index 2c0efe5f..c3020521 100644 --- a/lib/capybara/node/actions.rb +++ b/lib/capybara/node/actions.rb @@ -5,8 +5,8 @@ module Capybara ## # - # Finds a button or link by id, text or value and clicks it. Also looks at image - # alt text inside the link. + # Finds a button or link and clicks it. See {Capybara::Node::Actions#click_button} and + # {Capybara::Node::Actions#click_link} for what locator will match against for each type of element # @!macro waiting_behavior # If the driver is capable of executing JavaScript, +$0+ will wait for a set amount of time # and continuously retry finding the element until either the element is found or the time @@ -16,7 +16,7 @@ module Capybara # # @overload click_link_or_button([locator], options) # - # @param [String] locator Text, id or value of link or button + # @param [String] locator See {Capybara::Node::Actions#click_button} and {Capybara::Node::Actions#click_link} # # @return [Capybara::Node::Element] The element clicked #