I am trying scrape one site will multiple pdf files. But after downloading the first one, chrome asks me to allow the site to download multiple files.
Can we allow this while launching the browser? This is the code which works once I allow manually and downloads all the files.
for(selector of selectors){
await this.currentPage._client.send('Page.setDownloadBehavior', { behavior: 'allow', downloadPath: downloadFilePath });
await this.currentPage.waitFor(1000);
await this.currentPage.evaluate(el => el.click(), selector);
await this.currentPage.waitFor(1000 * 20);
}
page._client
is not function. – Meredithmeredithe