Search code examples
ruby-on-railsruby-on-rails-5.1

How to change the screenshot path in Rails 5.1 system test


Using Rails 5.1.2 Creating a system test and using the take_screenshot method.

How do i change the location these screenshots are created at?


Solution

  • Looks like the image path is hardcoded in, so you won't be able to change it currently. Probably wouldn't be too difficult to change if you wanted to open an issue over there or create a pull request for them.