[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-wallet-webex] branch master updated: fix #5112
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-wallet-webex] branch master updated: fix #5112 |
Date: |
Wed, 19 Jul 2017 22:05:53 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository wallet-webex.
The following commit(s) were added to refs/heads/master by this push:
new 8d5b1e53 fix #5112
8d5b1e53 is described below
commit 8d5b1e539be1d86c3d184448de9e38fce52a7bd4
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jul 19 22:05:22 2017 +0200
fix #5112
---
selenium/withdraw_buy.py | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/selenium/withdraw_buy.py b/selenium/withdraw_buy.py
index 29774b9d..4a014782 100644
--- a/selenium/withdraw_buy.py
+++ b/selenium/withdraw_buy.py
@@ -29,7 +29,8 @@ display = Display(visible=0, size=(1024, 768))
def abort(client):
client.quit()
- if display.old_display_var:
+ if hasattr(display, "old_display_var"):
+ print("Kill display")
display.stop()
sys.exit(1)
@@ -245,12 +246,7 @@ def withdraw(client, amount_menuentry=None):
# Confirm exchange (in-wallet page)
try:
logger.info("Polling for the button")
- exchange_input = client.find_element(By.XPATH,
"//address@hidden'url']")
- # Construct Exchange URL
- l = list(parse.urlsplit(taler_baseurl))
- l[1] = "exchange" + "." + l[1]
- exchange_input.send_keys(parse.urlunsplit(l))
- accept_exchange = wait.until(EC.element_to_be_clickable((By.XPATH,
"//button[1]")))
+ accept_exchange = wait.until(EC.element_to_be_clickable((By.XPATH,
"//address@hidden'pure-button button-success']")))
except TimeoutException:
logger.error("Could not confirm exchange")
abort(client)
@@ -315,5 +311,6 @@ make_donation(client, "1.0 TESTKUDOS")
logger.info("Bookmarked purchase: '%s'" % ret)
logger.info("Test passed")
client.quit()
-display.stop()
+if hasattr(display, "old_display_var"):
+ display.stop()
sys.exit(0)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-wallet-webex] branch master updated: fix #5112,
gnunet <=