minor fix
This commit is contained in:
2
main.pyw
2
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)
|
||||
|
||||
Reference in New Issue
Block a user