Method: Capybara::Node::Actions#click_link
- Defined in:
- lib/capybara/node/actions.rb
#click_link([locator], **options) ⇒ Capybara::Node::Element
Finds a link by id, test_id attribute, text or title and clicks it. Also looks at image alt text inside the link.
41 42 43 |
# File 'lib/capybara/node/actions.rb', line 41 def click_link(locator = nil, **) find(:link, locator, **).click end |