fix: 'sleep' function assertion
This commit is contained in:
@@ -21,7 +21,7 @@ def until(condition: typing.Callable[[WebDriver], bool], watch=True):
|
|||||||
|
|
||||||
def sleep(seconds: float):
|
def sleep(seconds: float):
|
||||||
from common.jsonrpc2.server import connection
|
from common.jsonrpc2.server import connection
|
||||||
assert connection is not None and connection.closed is not None
|
assert connection is not None and connection.closed is None
|
||||||
|
|
||||||
try: WebDriverWait(driver, seconds, seconds).until(lambda _: False)
|
try: WebDriverWait(driver, seconds, seconds).until(lambda _: False)
|
||||||
except: pass
|
except: pass
|
||||||
|
|||||||
Reference in New Issue
Block a user