From cb90ff38cde762166587a80438f3fb929d9cd239 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Thu, 5 Mar 2026 22:03:25 +0100 Subject: [PATCH] updated hardcoded attributes --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index eaf8766..dd0c0c3 100644 --- a/main.py +++ b/main.py @@ -164,7 +164,7 @@ def closeBrowser(driver: Firefox, distinguishkey: str) -> None: try: driver.quit() except: - pass # error expected because we killed the processe + pass # error expected because we killed the process # Cleanup if os.path.isdir(realProfilePath): @@ -206,7 +206,7 @@ driver.get(url) wait = WebDriverWait(driver, timeout) wait.until(AnyEc( EC.url_contains("microsoft"), - EC.presence_of_element_located((By.CSS_SELECTOR, 'img[alt="app logo"]')) + EC.presence_of_element_located((By.CSS_SELECTOR, 'img[alt~="logo" i]')) )) if "microsoft" in driver.current_url: @@ -217,7 +217,7 @@ if "microsoft" in driver.current_url: driver.get(url) wait = WebDriverWait(driver, timeout) -wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, 'img[alt="app logo"]'))) +wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, 'img[alt~="logo" i]'))) driver.implicitly_wait(0) continueBtn = driver.find_elements(By.ID, "btnContinue")