Skip to content

Commit

Permalink
fix(scrapers/leumi): support logging in to business account (#737)
Browse files Browse the repository at this point in the history
Changed the element waited for on PostLogin to be compatible with personal as well as business account landing page

Co-authored-by: Yuval Ofir <[email protected]>
  • Loading branch information
etdegani1 and yuvalof authored Jan 6, 2023
1 parent 3a00d71 commit c688b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrapers/leumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function navigateToLogin(page: Page): Promise<void> {
async function waitForPostLogin(page: Page): Promise<void> {
await Promise.race([
waitUntilElementFound(page, 'a[title="דלג לחשבון"]', true, 60000),
waitUntilElementFound(page, 'div.leumi-container', true, 60000),
waitUntilElementFound(page, 'div.main-content', true, 60000),
page.waitForXPath(`//div[contains(string(),"${INVALID_PASSWORD_MSG}")]`),
waitUntilElementFound(page, 'form[action="/changepassword"]', true, 60000), // not sure if they kept this one
]);
Expand Down

0 comments on commit c688b93

Please sign in to comment.