updated hardcoded attributes
This commit is contained in:
6
main.py
6
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")
|
||||
|
||||
Reference in New Issue
Block a user