Answers for "puppeteer example multiple file upload"

0

puppeteer example multiple file upload

await page.waitForSelector('input[type="file"]')
  const files = await Promise.all([`${filePath}/travis_1.png`, `${filePath}/travis_2.png`])
  const input = await page.$('input[type="file"]')
  if (fileExists) {
    await input.uploadFile(...files)
  }
Posted by: Guest on December-29-2020

Code answers related to "puppeteer example multiple file upload"

Code answers related to "Javascript"

Browse Popular Code Answers by Language