jnicklas/capybara — pull request #770 by hawknewton (2012-07-31 16:39:57+00:00)
Title: Added errors to a invalid_element_errors to support IE9

Added two errors that IE9 likes to throw when under the selenium remote driver:

* Selenium::WebDriver::Error::InvalidSelectorError -- Thrown by IEServerDriver.exe v0.25.1 when a selector is invalid or does not return any results.

* Selenium::WebDriver::Error::UnknownError -- Thrown by selenium-standalone v0.25.1 when bad things happen. I'm getting an intermittent NPE from the bowels of selenium during a find when running IE9. Adding this error to invalid_element_errors seems to mitigate whatever race condition is causing this to happen.

As there are currently no IE tests I didn't introduce any. Other than that, all specs that were passing still pass (the exception being spec/rspec/features_spec.rb:32 that was failing before I made changes).

Thanks!