Closed chrise86 closed 7 years ago
Poltergeist doesn't render the pages, it uses PhantomJS for that. The latest release version of PhantomJS is 2.1.1 which is roughly equivalent to a 5 year old version of Safari. So, assuming the html in the page (page.html
) is what you expect and it's only the look/layout that's off odds are you're using CSS that isn't supported by it. There is a PhantomJS 2.5beta that you can try that acts more like a modern browser but it is very much still a beta. Closing this because it's not a Poltergeist issue.
Being caught in the same problem with bootstrap 4.1 and poltergeist 2.1.1. Probably I must move to headless chrome-driver now to solve it.
Using Rails 5, poltergeist 1.13.0, capybara 2.12.1 and Bootstrap 4 (alpha6) with the following setup:
in a test I am seeing the following:
if I remove the "navbar-toggleable-md" class (or any variant i.e.
-sm
,-md
,-lg
,-xl
) from the navbar I get the following:however, I should be getting the following:
The navbar contains the following markup, and works perfectly in browser:
Any ideas?