Need fully rendered WebDriver screenshots? Use Firefox

If you’re using Chrome to run your WebDriver tests and are wondering why the screenshots don’t show the fully rendered page (including below the fold), here’s your answer.

ChromeDriver 2 broke fully rendered screenshot capture (over 2 years ago), and if you want these without doing some crazy workarounds like scrolling through the page using JavaScript and stitching images, a simple option is to run your tests in Firefox as it still supports fully rendered screenshots.

You’ll start seeing fully rendered screenshots like this one from on mobile:



Author: Alister Scott

Alister is an Excellence Wrangler for Automattic.