From 5590edaf36660cfffe31d59296b71c5a447919fb Mon Sep 17 00:00:00 2001 From: Gal Polak Date: Mon, 18 Nov 2024 12:30:30 +0200 Subject: [PATCH] fix: leumi.ts multiple account (#886) --- src/scrapers/leumi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scrapers/leumi.ts b/src/scrapers/leumi.ts index db81af12..954c433c 100644 --- a/src/scrapers/leumi.ts +++ b/src/scrapers/leumi.ts @@ -180,8 +180,8 @@ async function fetchTransactions(page: Page, startDate: Moment): Promise 1) { // get list of accounts and check accountId - await clickByXPath(page, 'xpath//*[contains(@class, "number") and contains(@class, "combo-inner")]'); - await clickByXPath(page, `xpath//span[contains(text(), '${accountId}')]`); + await clickByXPath(page, 'xpath///*[contains(@class, "number") and contains(@class, "combo-inner")]'); + await clickByXPath(page, `xpath///span[contains(text(), '${accountId}')]`); } accounts.push(await fetchTransactionsForAccount(page, startDate, removeSpecialCharacters(accountId)));