Skip to content

Commit

Permalink
Fix leumi.ts multiple account
Browse files Browse the repository at this point in the history
When switching account using the `xpath` there was a missing `/`
  • Loading branch information
Nic3Guy authored Nov 16, 2024
1 parent cbbf9b7 commit 79cb202
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 79cb202

Please sign in to comment.