From 43bf08eae81e89c63180a53fbefa886307dc2c2f Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 22 May 2023 17:22:56 -0500 Subject: [PATCH] chase: Remove second page load wait When there are multiple accounts associated with a Chase online banking user, the dashboard page layout changes. Detailed account history is no longer shown, so the elements we were waiting for in the "Waiting for page to load completely" step never appear. Since we're navigating directly to the download account transactions page now, anyway, we do not even need to wait for this button to appear. --- xactfetch.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/xactfetch.py b/xactfetch.py index 6b09053..a1f109c 100644 --- a/xactfetch.py +++ b/xactfetch.py @@ -551,9 +551,6 @@ class Chase: ) -> Path: log.info('Downloading transactions from %s to %s', from_date, to_date) fmt = '%m/%d/%Y' - log.debug('Waiting for page to load completely') - self.page.get_by_role('link', name='Sort Options').wait_for() - self.page.wait_for_timeout(random.randint(1500, 2500)) href = '#/dashboard/accountDetails/downloadAccountTransactions/index' self.page.evaluate(f'window.location.href = "{href}";') log.debug('Waiting for page to load')