aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-06-28 20:58:12 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-06-28 20:58:22 +0200
commitfc02e229d9494b19461d11934036690e74773e2a (patch)
tree4941955c9873e56390c30c5e3629074361e9d506
parent8fc959c3fad3eed96bb4785969c792b98d553e5a (diff)
Fix #5095.
-rw-r--r--selenium/withdraw_buy.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/selenium/withdraw_buy.py b/selenium/withdraw_buy.py
index 13fb67b3e..df130242e 100644
--- a/selenium/withdraw_buy.py
+++ b/selenium/withdraw_buy.py
@@ -260,8 +260,10 @@ def withdraw(client, amount_menuentry=None):
try:
logger.info("Polling for the button")
exchange_input = client.find_element(By.XPATH, "//input[@class='url']")
- # Bad: see #5095
- exchange_input.send_keys("https://exchange.test.taler.net/")
+ # 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]")))
except TimeoutException:
logger.error("Could not confirm exchange")