capybara-screenshot icon indicating copy to clipboard operation
capybara-screenshot copied to clipboard

Add a custom path for pruning

Open lokki007 opened this issue 7 years ago • 1 comments

You use "Screenshot.capybara_root" all the time, but in my project screenshots are not in the root of my tests folder.

"capybara_root" method sets capybara_tmp_path = Capybara.save_and_open_page_path || '.', which is either makes me using deprecated "save_and_open_page_path" method or set it it '.'

Is there any chance you can add a support for a custom location I can provide instead of '.' ?

lokki007 avatar Mar 27 '17 18:03 lokki007

@lokki007 sure, feel free to create a PR if you need this functionality.

mattheworiordan avatar Jul 12 '17 09:07 mattheworiordan