minor fix
This commit is contained in:
@@ -197,9 +197,6 @@ def main():
|
||||
wait = WebDriverWait(driver, timeout=args.timeout)
|
||||
wait.until_not(lambda x: x.find_element(By.CSS_SELECTOR, ".io-ox-busy"))
|
||||
|
||||
# 点击活动窗口
|
||||
click("div.io-ox-mail-compose-window div.floating-header")
|
||||
|
||||
# 填入收件人
|
||||
wrapper = locate("div.io-ox-mail-compose-window div[data-extension-id='to'] > div.mail-input")
|
||||
to = locate("input.token-input.tt-input[tabindex='0']", parent=wrapper)
|
||||
@@ -233,8 +230,11 @@ def main():
|
||||
# 删除过期邮件
|
||||
click("div.modal-footer button[data-action='delete']")
|
||||
break
|
||||
except KeyboardInterrupt:
|
||||
print('[信息] 程序中断')
|
||||
except Exception as e:
|
||||
print(f'[警告] 发生错误:{e}')
|
||||
|
||||
key = input('[????] 重试 (R) / 跳过 (S) / 取消 (C): ')
|
||||
if key in ['R', 'r']: continue
|
||||
elif key in ['S', 's']: break
|
||||
|
||||
Reference in New Issue
Block a user