From 5d19d0551eef2b44998e592b3c4493bb86ffc60c Mon Sep 17 00:00:00 2001 From: cnMuggle Date: Sat, 13 Jan 2024 17:47:34 -0600 Subject: [PATCH] increase default time out from 30s to 120s for slow linux machine to successfully login --- 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 65b0c7c..eeb716d 100644 --- a/schwab_api/authentication.py +++ b/schwab_api/authentication.py @@ -93,7 +93,7 @@ def login(self, username, password, totp_secret=None): # Log in to schwab using Playwright with self.page.expect_navigation(): - self.page.goto("https://www.schwab.com/") + self.page.goto("https://www.schwab.com/",timeout=120000) # Capture authorization token.