Sha256: 130a8f0c03c0b8a4ee3f530e4f5a9c480ce97bb999409361b6a99feebd5a1800

Contents?: true

Size: 388 Bytes

Versions: 263

Compression:

Stored size: 388 Bytes

Contents

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

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

Version data entries

263 entries across 263 versions & 2 rubygems

Version Path
testcentricity_web-4.1.7 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.1.6 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.1.5 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.1.4 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.1.3 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.1.2.1 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.1.2 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.1.1 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.1.0 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.0.3 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.0.2 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.0.1 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-4.0.0 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-3.3.0 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-3.2.25 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-3.2.24 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-3.2.23 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-3.2.22 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-3.2.21 lib/testcentricity_web/web_core/drag_drop_helper.rb
testcentricity_web-3.2.20 lib/testcentricity_web/web_core/drag_drop_helper.rb