Puppeteer opening chrome instance for each file at once
问题 I am trying to automate a workflow in which I have a list of files from a directory and I put them in an array. Then for each file in array I call a function for Chrome automation. const path = require('path'); const chalk = require('chalk'); const puppeteer = require('puppeteer'); module.exports = { generateOutput : async(fileName, url = "https://example.com/") => { const filePath = path.join(process.cwd(), fileName); const outputFilePath = path.join(process.cwd(), "OutputFiles"); try{ const