mirror of
https://github.com/status-im/status-app.git
synced 2026-08-31 09:01:11 +00:00
18 lines
443 B
Python
18 lines
443 B
Python
import time
|
|
|
|
import configs.timeouts
|
|
import driver
|
|
|
|
|
|
# def waitFor(condition, timeout_msec: int = configs.timeouts.UI_LOAD_TIMEOUT_MSEC) -> bool:
|
|
# started_at = time.monotonic()
|
|
# while not condition():
|
|
# time.sleep(1)
|
|
# if time.monotonic() - started_at > timeout_msec / 1000:
|
|
# return False
|
|
# return True
|
|
|
|
|
|
def isFrozen(timeout_sec):
|
|
return driver.currentApplicationContext().isFrozen(timeout_sec)
|