jnicklas/capybara — Issue #591: Brittle test with "docElement is null" error
Author: joliss
Created: 2012-01-04 18:27:50+00:00
State: open

/cc @jarib

Sometimes (very rarely), running the Capybara test suite yields failures with a weird "docElement is null" error message
On my system (MRI 1.9.2 I'm pretty sure): https://gist.github.com/1560935
Or Travis: http://travis-ci.org/#!/jnicklas/capybara/jobs/475145

The offending test code is here: https://github.com/jnicklas/capybara/blob/master/lib/capybara/spec/session/within_spec.rb#L22 ff.

Any ideas as to what might be going on?