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