catching timeout exception
This commit is contained in:
parent
5d816ca065
commit
de461a3358
@ -200,7 +200,7 @@ def register(ctx):
|
||||
try:
|
||||
ctx.wait.until(EC.element_to_be_clickable((By.ID,
|
||||
"select-exchange")))
|
||||
except NoSuchElementException:
|
||||
except (NoSuchElementException, TimeoutException):
|
||||
logger.error("Selecting exchange impossible")
|
||||
return False
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user