update: fixed high CPU usage during login status detection
This commit is contained in:
@@ -193,9 +193,12 @@ def main():
|
||||
try:
|
||||
driver.find_element(By.CSS_SELECTOR, "#io-ox-core")
|
||||
loader = driver.find_element(By.CSS_SELECTOR, "#background-loader")
|
||||
|
||||
if not loader.is_displayed():
|
||||
print(f'[信息] 已登录')
|
||||
break
|
||||
else:
|
||||
raise Exception()
|
||||
except:
|
||||
time.sleep(args.interval)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user