Skip to content

Commit

Permalink
Updated Discord Class name - #91
Browse files Browse the repository at this point in the history
Signed-off-by: LuXeZs <49080760+LuXeZs@users.noreply.github.com>
  • Loading branch information
Luminaex authored Nov 24, 2023
1 parent be3f670 commit 10a74cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ def code_entry(
#Testing if the main app UI renders.
try:
# Wait 1 second, then check if the Discord App's HTML loaded by it's CSS class name. If loaded, then output it to the user.
loginTest = driver.find_element(by=By.CLASS_NAME, value='app-2CXKsg')
loginTest = driver.find_element(by=By.CLASS_NAME, value='app_b1f720') # Will need a better way to find.
driver.implicitly_wait(1)
print(color(f"Code {totp_code} worked!", 'green'))
break
exit
except NoSuchElementException:
# This means that the login was unsuccessful so let's inform the user and wait.
print(f"Code: {color(totp_code, 'blue')} did not work, delay: {color(sleep_duration_seconds, 'blue')}")
Expand Down

0 comments on commit 10a74cd

Please sign in to comment.