Puppeteer click button download file
2019年1月29日 Question: How do I get puppeteer to download a file? await page.click('#js-download-hero'); await page.click('#js-accept-install'); let filename (async () => { const browser = await puppeteer.launch({headless: true}) const page 'networkidle2' }) await page.click('button.prod-ProductCTA--primary') await page. if (program.click) await page.click(program.click); const file = program.file