Full page screenshot with selenium
I wrote an article how to take a screenshot in capybara when you tests fail but if you are running the tests using chrome driver will not take a full page screenshot.
It is not mandatory to have a full page screenshot but when you have a really long list of data and your test fail because of a record from the bottom of the page then if you don’t have the full page screenshot it doesn’t help you at all with the debugging process.
For those if you with native selenium bindings you can check this out :
For Java users there is a really awesome library from yandex that brings some cool features :
WebDriver Screenshot utility
- Takes a screenshot of the WebElement on different platforms (i.e. desktop browsers, iOS Simulator Mobile Safari, Android Emulator Browser)
- Decorates screenshots
- Provides flexible screenshot comparison