Method: Capybara::Node::Actions#click_link_or_button
- Defined in:
- lib/capybara/node/actions.rb
#click_link_or_button([locator], **options) ⇒ Capybara::Node::Element Also known as: click_on
Finds a button or link and clicks it. See #click_button and #click_link for what locator will match against for each type of element.
25 26 27 |
# File 'lib/capybara/node/actions.rb', line 25 def (locator = nil, **) find(:link_or_button, locator, **).click end |