Fix #5095.
This commit is contained in:
parent
8fc959c3fa
commit
fc02e229d9
@ -260,8 +260,10 @@ def withdraw(client, amount_menuentry=None):
|
|||||||
try:
|
try:
|
||||||
logger.info("Polling for the button")
|
logger.info("Polling for the button")
|
||||||
exchange_input = client.find_element(By.XPATH, "//input[@class='url']")
|
exchange_input = client.find_element(By.XPATH, "//input[@class='url']")
|
||||||
# Bad: see #5095
|
# Construct Exchange URL
|
||||||
exchange_input.send_keys("https://exchange.test.taler.net/")
|
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, "//button[1]")))
|
||||||
except TimeoutException:
|
except TimeoutException:
|
||||||
logger.error("Could not confirm exchange")
|
logger.error("Could not confirm exchange")
|
||||||
|
Loading…
Reference in New Issue
Block a user