jnicklas/capybara — pull request #530 by mkdynamic (2011-10-24 00:26:39+00:00)
Title: Gracefully handle intermittent getBBox failures

This fixes the issue described in #501. The repo case in that issue is also reproducible for me, see comments for version info:
https://gist.github.com/11681383c6779ad15ce9

Been using this fix on a fairly large acceptance suite for a few weeks and it's been working well. In practice, it seems to only happen when using `Element#text`. I suspect, it may be related to the complexity of that method in Selenium:
http://code.google.com/p/selenium/source/browse/trunk/javascript/selenium-atoms/text.js#43