Method: Capybara::Node::Element#right_click
- Defined in:
- lib/capybara/node/element.rb
#right_click(*modifier_keys, wait: nil, **offset) ⇒ Capybara::Node::Element
Right Click the Element.
If the driver dynamic pages (JS) and the element is currently non-interactable, this method will continuously retry the action until either the element becomes interactable or the maximum wait time expires.
Both x: and y: must be specified if an offset is wanted, if not specified the click will occur at the middle of the element.
184 185 186 187 188 |
# File 'lib/capybara/node/element.rb', line 184 def right_click(*keys, **) perform_click_action(keys, **) do |k, opts| base.right_click(k, **opts) end end |