Created
July 15, 2011 06:23
-
-
Save andreyp/1084193 to your computer and use it in GitHub Desktop.
screenshot with selenium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from selenium import webdriver | |
browser = webdriver.Firefox() | |
browser.get('http://lenta.ru/') | |
browser.save_screenshot('screenie.png') | |
browser.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment