--- a/testing/web-platform/tests/webdriver/tests/support/wait.py
+++ b/testing/web-platform/tests/webdriver/tests/support/wait.py
@@ -23,16 +23,17 @@ def wait(session, condition, message,
end = start + timeout
while not (time.time() >= end):
next_step = time.time() + interval
try:
success = condition(session)
except ignored_exceptions:
last_exc = sys.exc_info()[0]
+ print("Wait exception thrown is {0}.".format(last_exc))
success = False
next_interval = max(next_step - time.time(), 0)
if not success:
time.sleep(next_interval)
continue
return success
raise TimeoutException("Timed out after %d seconds: %s" % (timeout, message))