Method: Capybara::Session#drag
- Defined in:
- lib/capybara/session.rb
#drag(source_locator, target_locator) ⇒ Object
59 60 61 62 63 |
# File 'lib/capybara/session.rb', line 59 def drag(source_locator, target_locator) source = locate(:xpath, source_locator, "drag source '#{source_locator}' not found on page") target = locate(:xpath, target_locator, "drag target '#{target_locator}' not found on page") source.drag_to(target) end |