From 8b0f91b19a1f25d29a53e307e9ba424469f80fd6 Mon Sep 17 00:00:00 2001 From: break27 Date: Fri, 22 Aug 2025 10:26:16 +0800 Subject: [PATCH] minor fix --- 邮件批量发送.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/邮件批量发送.py b/邮件批量发送.py index 39dc8cd..b1b9000 100644 --- a/邮件批量发送.py +++ b/邮件批量发送.py @@ -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}): 检测到邮件内容不正确,正在重试...')