1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Add docs about Capybara.save_path and #save_screenshot

This commit is contained in:
Nebojša Stričević 2016-12-29 09:50:41 +01:00
parent f7e537006a
commit b9a11a4788

View file

@ -672,6 +672,10 @@ Or have it save and automatically open:
save_and_open_screenshot
```
Screenshots are saved to `Capybara.save_path`, relative to the app directory.
If you have required `capybara/rails`, `Capybara.save_path` will default to
`tmp/capybara`.
## <a name="matching"></a>Matching
It is possible to customize how Capybara finds elements. At your disposal