Python – Cropping a Screenshot with PIL of an object found with Selenium, regardless of monitor size
I am using python and selenium in writing a program to automate a report creation. This program has to be portable and scalable — others will need to be able to use it on their own laptops or desktop monitors. As a result, I need to be able to capture and crop screenshots of a specific object on a page. Specifically, it screenshots three rows (grouped together), where the height of the three rows is the height of the tag that I find, and the width of it is the width of the tag that I find.