jnicklas/capybara — pull request #1355 by chronophasiac (2014-07-07 20:39:22+00:00)
Title: Chromedriver unable to fill time fields after navigating to "about:blank"

I don't fully understand this issue, so this PR is more about putting eyeballs on the problem than proposing a good solution. /disclaimer

Capybara has an issue when filling time fields in Chrome. When using Chromedriver only, calling `navigate.to("about:blank")` causes *all* subsequent attempts to fill inputs with `type=time` to silently fail.

I've set up a [Rails repo](https://github.com/chronophasiac/capybara_test) that illustrates the problem. Clone, `bundle`, and run `bundle exec rspec spec/features`. I would have added a test to Capybara, but I couldn't figure out how to execute the test suite in Chrome instead of FF.

The quick fix that I've implemented for my project is the subject of this PR. For reasons I cannot discern, calling JavaScript to load "about:blank" appears not to trigger the bug. Hopefully someone else can dig around and discover the real cause for this issue so a proper solution can be implemented.