From a9645b627011800a6e77493e0fa8a92d6c177ea3 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 20 Dec 2017 13:24:58 +0100 Subject: Increase hardcoded max timeouts We need a better solution for this. Sites loading a lot of responsive images easily need a minute after resizing. --- crocoite/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crocoite/cli.py b/crocoite/cli.py index ac58bd1..0880a53 100644 --- a/crocoite/cli.py +++ b/crocoite/cli.py @@ -120,7 +120,7 @@ def emulateScreenMetrics (l): # XXX: this seems to be broken, it does not clear the override #tab.Emulation.clearDeviceMetricsOverride () # wait until assets finished loading - l.waitIdle (2, 10) + l.waitIdle (2, 60) def loadScripts (paths, scripts=[]): for p in paths: @@ -212,7 +212,7 @@ def archive (self, url, output, onload, onsnapshot, browser, # get ready for snapshot: stop loading and scripts, disable events l.tab.Runtime.evaluate (expression='{} = true; window.scrollTo (0, 0);'.format (stopVarname), returnByValue=True) # if we stopped due to timeout, wait for remaining assets - l.waitIdle (2, 10) + l.waitIdle (2, 60) self.update_state (state='PROGRESS', meta={'step': 'emulateScreenMetrics'}) emulateScreenMetrics (l) -- cgit v1.2.3