From 5cd82cfd59a02f4c1c4425d110d940a4e23880ba Mon Sep 17 00:00:00 2001 From: break27 Date: Thu, 28 Aug 2025 13:51:43 +0800 Subject: [PATCH] minor fix --- main.pyw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.pyw b/main.pyw index de6502e..c594ead 100644 --- a/main.pyw +++ b/main.pyw @@ -189,7 +189,7 @@ def main(driver: WebDriver): try: if not driver.find_element(By.CSS_SELECTOR, "#background-loader").is_displayed(): tell('正在登陆') - click("#io-ox-topbar-account-dropdown-icon button.dropdown-toggle") + click("#io-ox-topbar-account-dropdown-icon button.dropdown-toggle", condition=EC.presence_of_element_located) address = locate("#topbar-account-dropdown .mail").get_attribute('innerText') person = HumanName(address.split('@', 2)[0]) person.capitalize(force=True)