Skip to content

Commit

Permalink
use $ instead of $$[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
baruchiro authored Jan 30, 2024
1 parent 8ac66ec commit 41d905b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scrapers/mizrahi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ class MizrahiScraper extends BaseScraperWithBrowser<ScraperSpecificCredentials>
await waitUntilElementFound(this.page, `a[href*="${TRANSACTIONS_PAGE}"]`);
await this.page.$eval(`a[href*="${TRANSACTIONS_PAGE}"]`, (el) => (el as HTMLElement).click());

const accountNumberElement = (await this.page.$$('#AccountPicker'))[0];
const accountNumberHandle = await accountNumberElement.getProperty('title');
const accountNumber = ((await accountNumberHandle.jsonValue()) as string);
const accountNumberElement = await this.page.$('#dropdownBasic b');
const accountNumberHandle = await accountNumberElement?.getProperty('title');
const accountNumber = ((await accountNumberHandle?.jsonValue()) as string);

const response = await Promise.any(TRANSACTIONS_REQUEST_URLS.map(async (url) => {
const request = await this.page.waitForRequest(url);
Expand Down

0 comments on commit 41d905b

Please sign in to comment.