Skip to content

Instantly share code, notes, and snippets.

@sousatg
Created February 10, 2016 15:09
Show Gist options
  • Save sousatg/9cf21e470a39e280cd6e to your computer and use it in GitHub Desktop.
Save sousatg/9cf21e470a39e280cd6e to your computer and use it in GitHub Desktop.
from selenium import webdriver
url = 'http://betaalbare-website.be'
b = webdriver.Firefox()
b.get( url )
resolutions = [(1024, 768), (1920, 1080), (1366, 768), (1280, 800), (1024, 768), (800, 600)]
for largura, altura in resolutions:
output_name = 'ticked_' + str(largura) + 'x' + str(altura) + '.png'
b.set_window_size( largura, altura )
b.save_screenshot(output_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment