Capture a Screenshot in Selenium WebDriver
Example of capturing a screenshot from Selenium WebDriver in Python:
#!/usr/bin/env python
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://www.ubuntu.com/')
browser.save_screenshot('screenie.png')
browser.quit()selenium/webdriver bindings for Python: http://pypi.python.org/pypi/selenium
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)
Tags:





