minor fix
This commit is contained in:
@@ -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}): 检测到邮件内容不正确,正在重试...')
|
||||
|
||||
Reference in New Issue
Block a user