From e6aa3a60e49de2caec84f71a3840ca7a622d3714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 1 Dec 2019 14:24:30 +0100 Subject: [PATCH] shot them all: update sizes add mobile/horizontal screenshot --- bin/shot_them_all.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/shot_them_all.py b/bin/shot_them_all.py index 51381be..72f224c 100644 --- a/bin/shot_them_all.py +++ b/bin/shot_them_all.py @@ -31,8 +31,10 @@ for theme in themes_data['themes']: time.sleep(1) os.system('sudo service memcached restart') browser.get('https://auquo.fred.local.0d.be/contactez-nous/inscription-sur-les-listes/') - browser.set_window_size(1200, 1000) + browser.set_window_size(1400, 1000) browser.save_screenshot('shots/%s-desktop.png' % theme_id) - browser.set_window_size(480, 1000) + browser.set_window_size(360, 740) # Samsung Galaxy S8 browser.save_screenshot('shots/%s-mobile.png' % theme_id) + browser.set_window_size(740, 360) # ditto, horizontal + browser.save_screenshot('shots/%s-mobile-horizontal.png' % theme_id) sys.stderr.write(u' 📸 \n')