Permalink
Browse files

Selenium::Webdrive#drag_and_drop_on is deprecated

  • Loading branch information...
1 parent f6c787e commit f7590ab33911cfc7bf548b12df7ab0706b8a9cc9 @twalpole committed Jul 8, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 capybara.gemspec
  2. +1 −1 lib/capybara/selenium/node.rb
View
2 capybara.gemspec
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency("nokogiri", [">= 1.3.3"])
s.add_runtime_dependency("mime-types", [">= 1.16"])
- s.add_runtime_dependency("selenium-webdriver", ["~> 0.2.2"])
+ s.add_runtime_dependency("selenium-webdriver", ["~> 2.0.0"])
s.add_runtime_dependency("rack", [">= 1.0.0"])
s.add_runtime_dependency("rack-test", [">= 0.5.4"])
s.add_runtime_dependency("xpath", ["~> 0.1.4"])
View
2 lib/capybara/selenium/node.rb
@@ -46,7 +46,7 @@ def click
end
def drag_to(element)
- resynchronize { native.drag_and_drop_on(element.native) }
+ resynchronize { driver.browser.action.drag_and_drop(native, element.native).perform }
end
def tag_name

0 comments on commit f7590ab

Please sign in to comment.