module Capybara::ElementClickOptionPatch

Public Instance Methods

perform_click_action(keys, **options) click to toggle source
Calls superclass method
# File lib/capybara/playwright/node.rb, line 3
def perform_click_action(keys, **options)
  # Expose `wait` value to the block given to perform_click_action.
  if options[:wait].is_a?(Numeric)
    options[:_playwright_wait] = options[:wait]
  end

  # Playwright has own auto-waiting feature.
  # So disable Capybara's retry logic.
  options[:wait] = 0
  super
end