jnicklas/capybara — pull request #626 by joliss (2012-01-27 10:08:18+00:00)
Title: Add workaround for "docElement is null" flickering test problem

---------------

This works around the "docElement is null" problem first mentioned in #591, which Jari reproduced at http://code.google.com/p/selenium/issues/detail?id=3147. Now we get reliable green builds: See http://travis-ci.org/#!/joliss/capybara/builds #76-#90.

The code is not very pretty, but I'm OK with having temporary hackery in the test code (until Selenium gets fixed).