Reputation: 845
I am using phantomjs 2.1.1, ruby 2.3.1p112. Here is my code:
Capybara.default_driver = :poltergeist
page.find('input[type="submit"]').trigger("click")
page.should have_content("#{user.email} created.")
This code works on chorme's and firefox's webdriver but doesn't work sometimes with poltergeist. I don't know why. Can any one help, please?
Upvotes: 0
Views: 95
Reputation: 656
PhantomJS is no longer being actively supported. Use Chrome Headless or another headless browser solution.
Upvotes: 1