Skip to content

Commit

Permalink
Selenium::Webdrive#drag_and_drop_on is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Jul 8, 2011
1 parent f6c787e commit f7590ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion capybara.gemspec
Expand Up @@ -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"])
Expand Down
2 changes: 1 addition & 1 deletion lib/capybara/selenium/node.rb
Expand Up @@ -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
Expand Down

0 comments on commit f7590ab

Please sign in to comment.