Fix in responsive_layout checker

This commit is contained in:
Marian Steinbach 2018-10-01 08:13:39 +02:00
parent 3e42e342a1
commit 9612823b57

View file

@ -53,7 +53,10 @@ class Checker(AbstractChecker):
'logs': self.capture_log(),
}
except TimeoutException as e:
logging.warn("TimeoutException when checking responsiveness for %s sizes %r: %s" % (url, sizes, e))
logging.warn("TimeoutException when checking responsiveness for %s: %s" % (url, e))
pass
except tenacity.RetryError as re:
logging.warn("RetryError when checking responsiveness for %s: %s" % (url, re))
pass
self.driver.quit()
@ -71,7 +74,7 @@ class Checker(AbstractChecker):
self.driver.get(url)
# give the page some time to load
time.sleep(2)
time.sleep(10)
for (width, height) in self.sizes:
self.driver.set_window_size(width, height)