Stable screenshot quality for Selenium

When using Chrome and some of the screenshots have black squares/areas/blocks instead of actual visual elements, like this:

Add the ‘–disable-gpu’ setting to your browser options. That’s all there is to it.