minor fix

This commit is contained in:
2025-08-22 10:26:16 +08:00
parent 282d8f4a8e
commit 8b0f91b19a

View File

@@ -333,7 +333,10 @@ def main(driver: WebDriver):
click(wrapper)
to.send_keys(recipient + Keys.ENTER)
if to.get_attribute('value') != recipient:
token = locate("div.io-ox-mail-compose-window .mail-input .tokenfield .token")
target = token.get_attribute('innerText').strip()
if target != recipient:
print(f'[警告] ({attempt}): 检测到收件人地址不正确,正在重试...')
elif not clean:
print(f'[警告] ({attempt}): 检测到邮件内容不正确,正在重试...')