Method: Capybara::Node::Actions#click_on
- Defined in:
- lib/capybara/node/actions.rb
#click_link_or_button([locator], **options) ⇒ Capybara::Node::Element
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.
28 29 30 |
# File 'lib/capybara/node/actions.rb', line 28 def (locator = nil, **) find(:link_or_button, locator, **).click end |