Skip to content

Commit

Permalink
Check for challenge element for mfa login
Browse files Browse the repository at this point in the history
  • Loading branch information
sunetfreitag committed Feb 7, 2025
1 parent a4ef007 commit 2042dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_mfazones.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def nodelogin(nextcloudnode,user='selenium'):
try:
totp = pyotp.TOTP(nodetotpsecret)
time.sleep(3)
g_wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="body-login"]/div[1]/div/main/div/form/input'))).send_keys(totp.now() + Keys.ENTER)
g_wait.until(EC.presence_of_element_located((By.NAME, 'challenge'))).send_keys(totp.now() + Keys.ENTER)
checkForTotp=False
except:
checkForTotp=True
Expand Down

0 comments on commit 2042dd0

Please # to comment.