mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Correctly pass message option to locate
This commit is contained in:
parent
cbc6643fbd
commit
d9511a7090
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ module Capybara
|
|||
end
|
||||
|
||||
def drag(source_locator, target_locator)
|
||||
source = locate(:xpath, source_locator, "drag source '#{source_locator}' not found on page")
|
||||
target = locate(:xpath, target_locator, "drag target '#{target_locator}' not found on page")
|
||||
source = locate(:xpath, source_locator, :message => "drag source '#{source_locator}' not found on page")
|
||||
target = locate(:xpath, target_locator, :message => "drag target '#{target_locator}' not found on page")
|
||||
source.drag_to(target)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue