diff --git a/src/scrapers/mizrahi.ts b/src/scrapers/mizrahi.ts index 8961c7cd..7bc182a0 100644 --- a/src/scrapers/mizrahi.ts +++ b/src/scrapers/mizrahi.ts @@ -211,9 +211,9 @@ class MizrahiScraper extends BaseScraperWithBrowser 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);