From 80c67579b91a329184417dea9ecb8be5bb8fccdc Mon Sep 17 00:00:00 2001 From: Eran Sakal Date: Sat, 13 Jul 2024 22:38:49 +0300 Subject: [PATCH] fix(leumi): post login (#876) Co-authored-by: Eran Sakal --- src/scrapers/leumi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scrapers/leumi.ts b/src/scrapers/leumi.ts index bde85cca..db81af12 100644 --- a/src/scrapers/leumi.ts +++ b/src/scrapers/leumi.ts @@ -213,7 +213,7 @@ async function navigateToLogin(page: Page): Promise { async function waitForPostLogin(page: Page): Promise { await Promise.race([ waitUntilElementFound(page, 'a[title="דלג לחשבון"]', true, 60000), - waitUntilElementFound(page, 'div.main-content', true, 60000), + waitUntilElementFound(page, 'div.main-content', false, 60000), page.waitForSelector(`xpath//div[contains(string(),"${INVALID_PASSWORD_MSG}")]`), waitUntilElementFound(page, 'form[action="/changepassword"]', true, 60000), // not sure if they kept this one ]);