Inspired from this thread (same question for Java): Take a screenshot with Selenium WebDriver
from selenium import webdriverbrowser = webdriver.Firefox()browser.get('http://www.google.com/')browser.save_screenshot('screenie.png')browser.quit()
Inspired from this thread (same question for Java): Take a screenshot with Selenium WebDriver
from selenium import webdriverbrowser = webdriver.Firefox()browser.get('http://www.google.com/')browser.save_screenshot('screenie.png')browser.quit()