diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2017-12-20 13:24:58 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2017-12-20 13:24:58 +0100 |
commit | a9645b627011800a6e77493e0fa8a92d6c177ea3 (patch) | |
tree | a43bfc5719417abf65cba09c76f31b5520f9b962 | |
parent | 563a016fd0ca705f61abd7ea67a6da411b9115f2 (diff) | |
download | crocoite-a9645b627011800a6e77493e0fa8a92d6c177ea3.tar.gz crocoite-a9645b627011800a6e77493e0fa8a92d6c177ea3.tar.bz2 crocoite-a9645b627011800a6e77493e0fa8a92d6c177ea3.zip |
Increase hardcoded max timeouts
We need a better solution for this. Sites loading a lot of responsive
images easily need a minute after resizing.
-rw-r--r-- | crocoite/cli.py | 4 |
1 files 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) |