Search code examples
ruby-on-railscapybaraphantomjsrspec-railspoltergeist

Capybara / poltergeist / phantomjs double_click missing


Like the title says capybara is having trouble finding double_click:

undefined method `double_click' for #<Capybara::Node::Element:...>

Click works just fine as do most other methods. I'm using capybara 2.1.0, poltergeist 1.6.0 and phantomjs 1.9.7. Any ideas?


Solution

  • For posterity here's the solution:

    I set javascript_driver:

    Capybara.javascript_driver = :poltergeist

    but not default_driver:

    Capybara.default_driver = :poltergeist