This will help you to capture screenshot when your test is failed. Screenshot will store on ErrorScreenshots dir.
How to :
- Clone / Download
- Open using IDE (Eclipse / Intellij)
- Set your path for saved Screenshots (Check on CaptureScreenshot.java)
- Run your failed test
- Check Screenshot on Error Screenshots dir
Check my other repo for more tutorial or automation framework
If you have any specific queries reach out to me at Github or E-Mail