Skip to content

Commit

Permalink
Update authentication.py
Browse files Browse the repository at this point in the history
  • Loading branch information
4rumprom authored Mar 12, 2024
1 parent a3c729c commit c674dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schwab_api/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def _async_login(self, username, password, totp_secret=None):

try:
await self.page.frame(name=login_frame).press("[placeholder=\"Password\"]", "Enter")
await self.page.wait_for_url(".*app/trade.*") # Making it more robust than specigying an exact url which may change.
await self.page.wait_for_url(".*app/trade.*", wait_until="domcontentloaded") # Making it more robust than specigying an exact url which may change.
except TimeoutError:
raise Exception("Login was not successful; please check username and password")

Expand Down

0 comments on commit c674dad

Please sign in to comment.