From 4120804dc4b8dc8c02eefec0a10eff3af76ad753 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 17 May 2024 10:10:41 -0500 Subject: [PATCH] chase: Fix login form fill Chase loves to make subtle, invisible changes to their website, presumably to break screen scrapers like this. --- xactfetch.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xactfetch.py b/xactfetch.py index 4f7d51f..9f632c2 100644 --- a/xactfetch.py +++ b/xactfetch.py @@ -580,12 +580,12 @@ class Chase: self.page.wait_for_timeout(random.randint(2000, 4000)) password = rbw_get(self.vault_item, self.vault_folder, self.username) log.debug('Filling username/password login form') - self.page.frame_locator('#logonbox').locator( - 'input[name=userId]' - ).fill(self.username) - self.page.frame_locator('#logonbox').locator( - 'input[name=password]' - ).fill(password) + self.page.frame_locator('#logonbox').get_by_label('Username').fill( + self.username + ) + self.page.frame_locator('#logonbox').get_by_label('Password').fill( + password + ) self.page.wait_for_timeout(random.randint(500, 750)) self.page.frame_locator('#logonbox').get_by_role( 'button', name='Sign in'