From 2890597673e349d593ae3b438ae21d2a5e811fc5 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 24 Mar 2024 10:58:42 -0500 Subject: [PATCH] chase: Update card button text Chase changed the name of my credit card from *CREDIT CARD* to *Amazon Visa*. Just in case they change it again or something, let's match only on the card number. --- xactfetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xactfetch.py b/xactfetch.py index f5d0d78..4f7d51f 100644 --- a/xactfetch.py +++ b/xactfetch.py @@ -604,7 +604,7 @@ class Chase: log.info('Downloading transactions from %s to %s', from_date, to_date) fmt = '%m/%d/%Y' self.page.locator('#CARD_ACCOUNTS').get_by_role( - 'button', name='CREDIT CARD (...2467)' + 'button', name='(...2467)' ).first.click() fl = self.page.locator('#flyout') fl.wait_for()