Skip to content

Commit

Permalink
fix: leumi.ts multiple account (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic3Guy authored Nov 18, 2024
1 parent cbbf9b7 commit 5590eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scrapers/leumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ async function fetchTransactions(page: Page, startDate: Moment): Promise<Transac
for (const accountId of accountsIds) {
if (accountsIds.length > 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)));
Expand Down

0 comments on commit 5590eda

Please sign in to comment.