1 await page.waitForSelector('input[type="file"]')
2 const files = await Promise.all([`${filePath}/travis_1.png`, `${filePath}/travis_2.png`])
3 const input = await page.$('input[type="file"]')
4 if (fileExists) {
5 await input.uploadFile(...files)
6 }