Skip to content

Commit

Permalink
Update element IDs for automatic authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
webbsledge committed May 3, 2024
1 parent 7d95641 commit 0a2a7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tdameritrade/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check warning on line 68 in tdameritrade/auth/__init__.py

View check run for this annotation

Codecov / codecov/patch

tdameritrade/auth/__init__.py#L67-L68

Added lines #L67 - L68 were not covered by tests
ubox.send_keys(tdauser)
pbox.send_keys(tdapass)
driver.find_element(By.ID, "accept").click()
Expand Down

0 comments on commit 0a2a7f2

Please sign in to comment.