From 0a2a7f22526f6be137d1a7415c185d7b746a21d5 Mon Sep 17 00:00:00 2001 From: Webb Date: Thu, 2 May 2024 21:29:34 -0400 Subject: [PATCH] Update element IDs for automatic authentication --- tdameritrade/auth/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tdameritrade/auth/__init__.py b/tdameritrade/auth/__init__.py index bc3279a..9313f0a 100644 --- a/tdameritrade/auth/__init__.py +++ b/tdameritrade/auth/__init__.py @@ -64,8 +64,8 @@ def authentication(client_id, redirect_uri, tdauser=None, tdapass=None): # Fully automated oauth2 authentication (if tdauser and tdapass were inputed into the function, or found as # environment variables) if tdauser and tdapass: - ubox = driver.find_element(By.ID, "username") - pbox = driver.find_element(By.ID, "password") + ubox = driver.find_element(By.ID, "username0") + pbox = driver.find_element(By.ID, "password1") ubox.send_keys(tdauser) pbox.send_keys(tdapass) driver.find_element(By.ID, "accept").click()