Skip to content

Commit 09d2b9f

Browse files
committed
Check Ferrum::NodeNotFoundError to force Capybara reruns
1 parent 1f66a3d commit 09d2b9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/capybara/cuprite/browser.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ def find_all(method, selector, within = nil)
187187
raise InvalidSelector.new(e.response, method, selector)
188188
end
189189
raise
190+
rescue Ferrum::NodeNotFoundError => e
191+
raise ObsoleteNode.new(self, e.response)
190192
end
191193
end
192194

0 commit comments

Comments
 (0)