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
- Fix for Poltergeist issue #66 See https://github.com/mattheworiordan/capybara-screenshot/issues/66#issuecomment-53083061 — committed to mattheworiordan/capybara-screenshot by mattheworiordan 9 years ago
I had the same problem and did something similar to @sethcall to solve it.
I was doing this in one of my tests:
(which is a workaround for a common issue to those who use phantomjs/poltergeist/capybara: jonleighton/poltergeist#375) And after switching it to:
The screenshots are back 👍
Thanks @sethcall !