Looping through each Chrome tab and taking a screenshot of that tab

Try checking this post. It may have a solution: