fix: waiting for spins
This commit is contained in:
@@ -210,6 +210,12 @@ def main(driver: WebDriver, logger = logging.getLogger('main')):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def perform(cls):
|
def perform(cls):
|
||||||
|
try: spin = driver.find_elements(By.CSS_SELECTOR, ".okki-spin")
|
||||||
|
except: spin = None
|
||||||
|
|
||||||
|
if spin:
|
||||||
|
sleep(parameters['interval'])
|
||||||
|
return True
|
||||||
if status == Status.RUNNING:
|
if status == Status.RUNNING:
|
||||||
t1.start()
|
t1.start()
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user