minor fix

This commit is contained in:
2025-08-28 13:51:43 +08:00
parent f2c0e0c54e
commit 5cd82cfd59

View File

@@ -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)