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)