selenium: fixing non-clickable element by sleep(). To be improved.

This commit is contained in:
Marcello Stanisci 2016-11-12 13:13:25 +01:00
parent 6492b6488a
commit 3264067ce3
2 changed files with 1 additions and 1 deletions

0
manifest.json Normal file → Executable file
View File

View File

@ -110,7 +110,7 @@ def make_donation(client, amount_menuentry=None):
sys.exit(1)
confirm_taler.click() # Taler as payment option chosen
# explicit get() is needed, it hangs (sometimes) otherwise
time.sleep(1)
time.sleep(3) #FIXME use better way to 'Ok' Taler at checkout page
client.get(client.current_url)
try:
confirm_pay = wait.until(EC.element_to_be_clickable((By.XPATH, "//button[@class='accept']")))