title: Why Poltergeist driver can NOT find some elements that are successfully found by Capybara (Ruby)
body: <p>I've written set of TC using Capybara. All the tests are successfully run and no issues arise. Driver is defined as following:</p>
  
  <pre><code>Capybara.default_driver = :selenium
  </code></pre>
  
  <p>But when I am trying to run the same TC using Capybara Poltergeist driver - I face with the problem that some elements can not be found by Poltergeist. For instance Poltergeist can not find such xpath:</p>
  
  <pre><code>"//div[./ul[@class='pricing-plan list-unstyled']/li[contains(., 'Basic')]]//li/a[contains(., 'Get Started')]"
  </code></pre>
  
  <p>Driver is defined as following:</p>
  
  <pre><code>require 'capybara/poltergeist'
    Capybara.default_driver = :poltergeist
    Capybara.javascript_driver = :poltergeist
    Capybara.current_driver = :poltergeist
  
    Capybara.register_driver :poltergeist do |app|
      Capybara::Poltergeist::Driver.new(app,
                                        :phantomjs =&gt; File.join("E:/Programming/phantomjs-2.1.1-windows/phantomjs-2.1.1-windows/phantomjs.exe"),
                                        :js_errors =&gt; false,
                                        :phantomjs_options =&gt; ['--ignore-ssl-errors=yes'],
                                        :phantomjs_logger =&gt; File.open("F:/Programming/VLoop/Project/03.06.216/webapp/webapp/log/test_phantomjs.log", 'w+')
      )
    end
  </code></pre>
  
  <p>The question is why there is difference between Capybara and Poltergeist drivers and how to handle this issue of impossibility to find some elements by Poltergeist driver?</p>