Puppeteer download CSV file using javascript

Hello, I am trying to use puppeteer with javascript to scrape website and download CSV file using await page.click(CSS selector). Unfortunately, no file is ever downloaded. On local machine it works.
Screenshots are downloaded to the Apify storage, but the CSV file is not... does anybody know how to do that? Thank you
Was this page helpful?