gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-webex] branch master updated: print browser l


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-webex] branch master updated: print browser log on selenium pay failure
Date: Sun, 29 Oct 2017 23:37:29 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-webex.

The following commit(s) were added to refs/heads/master by this push:
     new 0f9fef41 print browser log on selenium pay failure
0f9fef41 is described below

commit 0f9fef41b069a29b5b25308b34fbb6db51fe2305
Author: Florian Dold <address@hidden>
AuthorDate: Sun Oct 29 23:37:18 2017 +0100

    print browser log on selenium pay failure
---
 selenium/withdraw_buy.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/selenium/withdraw_buy.py b/selenium/withdraw_buy.py
index bc543143..e782cb90 100644
--- a/selenium/withdraw_buy.py
+++ b/selenium/withdraw_buy.py
@@ -83,6 +83,12 @@ def is_error(client):
                 return True
         return False
 
+def print_log(client):
+    print("--- Dumping browser log: ---")
+    for log in client.get_log("browser"):
+        print(log['level'] + ': ' + log['message'])
+    print("--- End of browser log ---")
+
 
 def switch_base():
     """If 'test' is in TALER_BASEURL, then make it be 'demo', and viceversa.
@@ -173,6 +179,7 @@ def buy_article(client, title, fulfillment_url=None):
         logger.info("Pay button turned clickable")
     except TimeoutException:
         logger.error('Could not confirm payment on blog')
+        print_log(client)
         abort(client)
     confirm_pay.click()
     time.sleep(3)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]