from selenium import webdriver driver = webdriver.PhantomJS('/home/metulburr/phantomjs') #http://phantomjs.org/download.html driver.set_window_size(1920,1080) driver.get('http://www.google.com') driver.save_screenshot('out.png') driver.quit()where the path is to wherever the webdriver downloaded resides on your computer
out.png
Im sure you can get the element location, and crop the image to that location. Not sure exactly as i never had to do that before.
Recommended Tutorials: