module Capybara::Node::Actions
def click_link_or_button(locator = nil, **options)
-
(Capybara::Node::Element)
- The element clicked
Parameters:
-
locator
(String
) -- See {#click_button} and {#click_link}
Overloads:
-
click_link_or_button([locator], **options)
def click_link_or_button(locator = nil, **options) find(:link_or_button, locator, **options).click end