Method: Selenium::WebDriver::PointerActions#drag_and_drop
- Defined in:
- lib/selenium/webdriver/common/interactions/pointer_actions.rb
permalink #drag_and_drop(source, target, device: nil) ⇒ ActionBuilder
A convenience method that performs click-and-hold at the location of the source element, moves to the location of the target element, then releases the mouse.
306 307 308 309 310 311 |
# File 'lib/selenium/webdriver/common/interactions/pointer_actions.rb', line 306 def drag_and_drop(source, target, device: nil) click_and_hold(source, device: device) move_to(target, device: device) release(device: device) self end |