When I run this snippet of code in a browser using selenium, it works fine
find(:css, '*[data-id="claim_email"]').set "gmelville@constantcontact.com"
find(:css, '*[data-id="claim_link"]').click
but, when i try to run the same thing headless using poltergeist on phantomjs, i get an error stating
Unable to find css "*[data-id=\"claim_email\"]" (Capybara::ElementNotFound).
What could be the issue here? Looking at the rendered page when running headless, it does have the element.
Also im running these test using cucumber