Skip to content

Instantly share code, notes, and snippets.

@andreyp
Created July 15, 2011 06:23
Show Gist options
  • Save andreyp/1084193 to your computer and use it in GitHub Desktop.
Save andreyp/1084193 to your computer and use it in GitHub Desktop.
screenshot with selenium
#!/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