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'