Recently had to deal with automation testing and fix lots of issues trying to generate screenshots, after solving, recorded this video tutorial.