capybara-screenshot: Not getting any image on error although path specfied

On rspec errors, I get a message

Screenshot: [some file path]

However, there’s no file.

I’ve got the following gem versions:

capybara (2.1.0)
  mime-types (>= 1.16)
  nokogiri (>= 1.3.3)
  rack (>= 1.0.0)
  rack-test (>= 0.5.4)
  xpath (~> 2.0)
capybara-screenshot (0.3.14)
  capybara (>= 1.0, < 3)
  launchy

About this issue

  • Original URL
  • State: open
  • Created 11 years ago
  • Comments: 38 (14 by maintainers)

Commits related to this issue

Most upvoted comments

I had the same problem and did something similar to @sethcall to solve it.

I was doing this in one of my tests:

after(:each) { page.driver.reset! }

(which is a workaround for a common issue to those who use phantomjs/poltergeist/capybara: jonleighton/poltergeist#375) And after switching it to:

append_after(:each) { page.driver.reset! }

The screenshots are back 👍

Thanks @sethcall !