shot them all: close browser when exiting

This commit is contained in:
Frédéric Péters 2019-12-01 14:25:07 +01:00
parent e6aa3a60e4
commit 7e805f209e
1 changed files with 2 additions and 0 deletions

View File

@ -38,3 +38,5 @@ for theme in themes_data['themes']:
browser.set_window_size(740, 360) # ditto, horizontal
browser.save_screenshot('shots/%s-mobile-horizontal.png' % theme_id)
sys.stderr.write(u' 📸 \n')
browser.close()