Sha256: fda4eaebd0ba89447fa871b7d04419ca251266c51e828ae37bb2516b271b6465

Contents?: true

Size: 410 Bytes

Versions: 33

Compression:

Stored size: 410 Bytes

Contents

# :nocov:

module CapybaraExtension
  def drag_by(right_by, down_by)
    base.drag_by(right_by, down_by)
  end
end


module CapybaraSeleniumExtension
  def drag_by(right_by, down_by)
    driver.browser.action.drag_and_drop_by(native, right_by, down_by).perform
  end
end

# :nocov:

::Capybara::Selenium::Node.send :include, CapybaraSeleniumExtension
::Capybara::Node::Element.send :include, CapybaraExtension

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
testcentricity_web-4.6.1 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.6.0 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.15 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.14 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.13 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.12 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.11 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.10 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.9.1 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.9 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.7 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.6 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.5 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.4 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.3 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.2 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.1 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.5.0 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.4.7 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.4.6 lib/testcentricity_web/web_core/drag_drop_helper.rb