Method: Selenium::WebDriver::PointerActions#double_click
- Defined in:
- lib/selenium/webdriver/common/interactions/pointer_actions.rb
#double_click(element = nil, device: nil) ⇒ ActionBuilder
Performs a double-click at middle of the given element. Equivalent to:
driver.action.move_to(element).double_click
When no element is passed, the current mouse position will be double-clicked.
255 256 257 258 259 260 |
# File 'lib/selenium/webdriver/common/interactions/pointer_actions.rb', line 255 def double_click(element = nil, device: nil) move_to(element, device: device) if element click(device: device) click(device: device) self end |