Taking screenshot with Selenium WebDriver in Python
from selenium import webdriver browser = webdriver . Firefox () browser . get ( 'http://www.google.com/' ) ' Taking screenshot in Specific Folder driver . save_screenshot ( 'D\folder\filename.png' )' browser . quit ()