Skip to content

Commit

Permalink
Merge pull request teamcapybara#406 from twalpole/drag_deprecated
Browse files Browse the repository at this point in the history
Selenium::Webdriver#drag_and_drop_on is deprecated
  • Loading branch information
joliss committed Jul 11, 2011
2 parents c3a61cb + f7590ab commit 6a17be4
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 6a17be4

Please sign in to comment.