diff --git a/parser/src/puppeteerExtensions.ts b/parser/src/puppeteerExtensions.ts index 8e2f82b..8fb3ad1 100644 --- a/parser/src/puppeteerExtensions.ts +++ b/parser/src/puppeteerExtensions.ts @@ -26,7 +26,8 @@ export async function isSelectedCheckbox(page: puppeteer.Page, selector: string) async function getSelectedValue(page: puppeteer.Page, selector: string): Promise { const fullSelector = getSelectFullSelector(selector); - await page.waitForSelector(fullSelector, { visible: true }); + const select = await page.waitForSelector(fullSelector, { visible: true }); + await select.scrollIntoView(); return await page.$eval(fullSelector, node => ( node).value); }