adding some logging draft
authorDavid Burns <dburns@mozilla.com>
Wed, 07 Mar 2018 13:33:27 +0000
changeset 764229 22aed6eb3f67eb2f01627385bb9eb8ba19b09861
parent 764179 2fb020a9457bb033708cb5692e1a5bf9371dd418
push id101709
push userbmo:dburns@mozilla.com
push dateWed, 07 Mar 2018 13:33:52 +0000
milestone60.0a1
adding some logging MozReview-Commit-ID: 1y98lsa9hP2
testing/web-platform/tests/webdriver/tests/support/wait.py
--- 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))