diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-04-27 10:47:01 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-04-27 10:47:01 +0200 |
commit | 90c67fc7178ad2219d37ae36d0a0b7c842de75fe (patch) | |
tree | 63234a23a2eeb307e037814adce0f229628b2bcc /selenium | |
parent | 8beee058efa6a745a981bf6bbe4c12f39559a538 (diff) |
selenium withdrawal minor fixes
Diffstat (limited to 'selenium')
-rw-r--r-- | selenium/wallet-test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/selenium/wallet-test.py b/selenium/wallet-test.py index 9cd05fe1a..1e4410c11 100644 --- a/selenium/wallet-test.py +++ b/selenium/wallet-test.py @@ -76,7 +76,7 @@ class BankTestCase(unittest.TestCase): def test_withdrawal(self): bank_url = 'http://127.0.0.1:9898' self.client.get(bank_url + '/accounts/register') - + self.client.find_element(By.TAG_NAME, "form") register = """\ var form = document.getElementsByTagName('form')[0]; form.username.value = '%s'; @@ -87,14 +87,14 @@ class BankTestCase(unittest.TestCase): self.client.execute_script(register) self.assertFalse(is_error(self.client)) wait = WebDriverWait(self.client, 10) - # WARNING, 'button' below *gets* clicked but the an error about ExpiredTimeout - # gets thrown and printed on the console + button = self.client.find_element(By.ID, "select-exchange") button = wait.until(EC.element_to_be_clickable((By.ID, "select-exchange"))) # click to confirm the amount to withdraw button.click() # Note: this further 'get()' seems needed to get the in-wallet page loaded location = self.client.execute_script("return document.location.href") self.client.get(location) + # Confirm xchg button = wait.until(EC.element_to_be_clickable((By.XPATH, "//button[1]"))) # This click returns the captcha page (put wait?) button.click() |