mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Also be careful when calling finder methods
This commit is contained in:
parent
e907fd785f
commit
20c9538f5d
1 changed files with 12 additions and 0 deletions
|
@ -173,6 +173,18 @@ module Capybara
|
|||
carefully { base.drag_to(node.base) }
|
||||
end
|
||||
|
||||
def find(*args)
|
||||
carefully { super }
|
||||
end
|
||||
|
||||
def first(*args)
|
||||
carefully { super }
|
||||
end
|
||||
|
||||
def all(*args)
|
||||
carefully { super }
|
||||
end
|
||||
|
||||
def reload
|
||||
reloaded = parent.reload.first(@selector.name, @selector.locator, @selector.options)
|
||||
@base = reloaded.base if reloaded
|
||||
|
|
Loading…
Add table
Reference in a new issue