Handle MFA modal on login
This commit is contained in:
parent
85c3e5cef0
commit
9f65e65896
@ -112,6 +112,16 @@ password.send_keys(config['main']['password'])
|
||||
|
||||
password.submit()
|
||||
|
||||
# MFA MODAL CHECK
|
||||
try:
|
||||
WebDriverWait(driver, timeout).until(
|
||||
EC.presence_of_all_elements_located((By.XPATH, '//button[@data-cy="remind-me-next-time-mfa"]'))
|
||||
)
|
||||
mfa_btn = driver.find_element(By.XPATH, '//button[@data-cy="remind-me-next-time-mfa"]')
|
||||
mfa_btn.click()
|
||||
except:
|
||||
pass
|
||||
|
||||
# Wait for app to load and naviagte to Reservations "page"
|
||||
try:
|
||||
WebDriverWait(driver, timeout).until(
|
||||
|
||||
@ -123,7 +123,15 @@ password = driver.find_element(By.ID, 'password')
|
||||
password.send_keys(config['main']['password'])
|
||||
|
||||
password.submit()
|
||||
|
||||
# MFA MODAL CHECK
|
||||
try:
|
||||
WebDriverWait(driver, timeout).until(
|
||||
EC.presence_of_all_elements_located((By.XPATH, '//button[@data-cy="remind-me-next-time-mfa"]'))
|
||||
)
|
||||
mfa_btn = driver.find_element(By.XPATH, '//button[@data-cy="remind-me-next-time-mfa"]')
|
||||
mfa_btn.click()
|
||||
except:
|
||||
pass
|
||||
# Wait for app to load and naviagte to students "page"
|
||||
try:
|
||||
WebDriverWait(driver, timeout).until(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user