From c674dad72270f3cc24cb7f31a34cb89fc923105a Mon Sep 17 00:00:00 2001 From: 4rumprom <84041172+4rumprom@users.noreply.github.com> Date: Tue, 12 Mar 2024 17:07:02 -0400 Subject: [PATCH] Update authentication.py --- schwab_api/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schwab_api/authentication.py b/schwab_api/authentication.py index 71285a2..bf16e4f 100644 --- a/schwab_api/authentication.py +++ b/schwab_api/authentication.py @@ -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")