From dd0edc599e83da12fd69e539e1b659ed4bdbef0f Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 11 Mar 2024 13:26:48 -0500 Subject: [PATCH] chase: Ensure transaction list is not empty By default, the transaction list for the Chase credit card shows transactions that have posted since the last statement. This list can sometimes be empty, particularly on the day the the statement is issued. When this is the case, clicking the _Download Account Activity_ button does not work; it simply displays a message stating "There's no account activity showing to download." Since we are going to adjust the date range on the download form anyway, it doesn't matter what's showing, we just need the button to work. Thus, we now set the page show all transactions and then click the button. --- xactfetch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xactfetch.py b/xactfetch.py index ae71f04..f5d0d78 100644 --- a/xactfetch.py +++ b/xactfetch.py @@ -613,6 +613,9 @@ class Chase: 'button', name='Account activity', exact=True ).wait_for() fl.get_by_role('link', name='Show details').wait_for() + fl.get_by_role('link', name='Activity since last statement').click() + fl.get_by_role('link', name='All transactions').click() + fl.get_by_text('See more activity').wait_for() fl.get_by_role('button', name='Download Account Activity').click() log.debug('Filling account activity download form') self.page.locator('#select-downloadActivityOptionId-label').click()