1
0
Fork 0
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:
Jonas Nicklas 2011-07-14 09:36:52 +02:00
parent e907fd785f
commit 20c9538f5d

View file

@ -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