title: Cucumber/Capybara + Angular: Test passes using selenium driver, but not poltergeist
body: <p>I am trying to run feature tests on an angular app, but they keep failing using poltergeist driver. The reason seems to be because data-binding syntax was being used literally. For example, under poltergeist, for the following link, where {{userName}} would be displayed as 'User Name',</p>
  
  <pre><code>&lt;a href="/path/to/somewhere"&gt;{{userName}}&lt;/a&gt;
  </code></pre>
  
  <p><code>find(:link, text: 'User Name').click</code> fails, but <code>find(:link, text: '{{userName}}').click</code> works. </p>
  
  <p>Under selenium driver, <code>find(:link, text: 'User Name').click</code> works fine. </p>
  
  <p>I would like to use poltergeist so that I can run them as a part of entire test suite and incorporated into CI, and this is preventing it.</p>
  
  <p>The following is Cucumber setup in env.rb.</p>
  
  <pre><code>require 'cucumber/rails'
  require 'capybara/poltergeist'
  
  Capybara.register_driver :poltergeist_debug do |app|
    options = { inspector: true, js_errors: false, timeout: 180, phantomjs_options: ['--load-images=no', '--ignore-ssl-errors=yes'] }
  
    Capybara::Poltergeist::Driver.new(app, options)
  end
  
  Capybara.default_wait_time = 30
  Capybara.javascript_driver = :poltergeist_debug
  Capybara.default_driver = :poltergeist_debug
  
  DatabaseCleaner.strategy = :truncation
  DatabaseCleaner.clean
  
  Cucumber::Rails::Database.javascript_strategy = :truncation
  </code></pre>
  
  <p>Any help would be much, much appreciated. </p>