Method: Selenium::WebDriver::PointerActions#drag_and_drop_by
- Defined in:
- lib/selenium/webdriver/common/interactions/pointer_actions.rb
#drag_and_drop_by(source, right_by, down_by, device: nil) ⇒ ActionBuilder
A convenience method that performs click-and-hold at the location of the source element, moves by a given offset, then releases the mouse.
330 331 332 333 334 335 |
# File 'lib/selenium/webdriver/common/interactions/pointer_actions.rb', line 330 def drag_and_drop_by(source, right_by, down_by, device: nil) click_and_hold(source, device: device) move_by(right_by, down_by, device: device) release(device: device) self end |