Method: Capybara::Node::Element#drag_to
- Defined in:
- lib/capybara/node/element.rb
#drag_to(node, **options) ⇒ Capybara::Node::Element
Drag the element to the given other element.
source = page.find('#foo')
target = page.find('#bar')
source.drag_to(target)
418 419 420 421 |
# File 'lib/capybara/node/element.rb', line 418 def drag_to(node, **) synchronize { base.drag_to(node.base, **) } self end |