Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
Try to debug missing secret field on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Apr 5, 2024
1 parent 3a2fbcd commit 76594b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions testing/selenium/acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ def register_2fa(driver, base_url, username, password, ssh_agent):
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.ID, "dialog-verify"))).click()
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.ID, "dialog-next"))).click()

WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.ID, "secret-url")))
WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.ID, "secret-url"))).get_attribute("value")
save_screenshot("6_SecetURL.png")

secret_field = driver.find_element("id", "secret-url")
secret_field = secret_field.get_attribute("value")
logger.debug("Scraping the TOTP secret")

secret = re.search("secret=(.*)", secret_field).group(1)
Expand Down

0 comments on commit 76594b4

Please sign in to comment.