1
0
Fork 0

chase: Fix login form fill

Chase loves to make subtle, invisible changes to their website,
presumably to break screen scrapers like this.
master
Dustin 2024-05-17 10:10:41 -05:00
parent 2890597673
commit 4120804dc4
1 changed files with 6 additions and 6 deletions

View File

@ -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'