Method: Selenium::WebDriver::PointerActions#context_click
- Defined in:
- lib/selenium/webdriver/common/interactions/pointer_actions.rb
#context_click(element = nil, device: nil) ⇒ ActionBuilder
Performs a context-click at middle of the given element. First performs a move_to to the location of the element.
When no element is passed, the current mouse position will be context-clicked.
283 284 285 |
# File 'lib/selenium/webdriver/common/interactions/pointer_actions.rb', line 283 def context_click(element = nil, device: nil) click(element, button: :right, device: device) end |