Skip to content

Commit

Permalink
Check Ferrum::NodeNotFoundError to force Capybara reruns
Browse files Browse the repository at this point in the history
  • Loading branch information
rogercampos committed Jul 8, 2020
1 parent 1f66a3d commit 09d2b9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/capybara/cuprite/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ def find_all(method, selector, within = nil)
raise InvalidSelector.new(e.response, method, selector)
end
raise
rescue Ferrum::NodeNotFoundError => e
raise ObsoleteNode.new(self, e.response)
end
end

Expand Down

0 comments on commit 09d2b9f

Please sign in to comment.