I am writing an extension that allows me to automatize file uploading.
I have that selector
let fileInput = document.querySelector("input[type=file]")
Is there a way to fill it with my own local files ?
I could do that with nodejs/puppeteer:
const files = await Promise.all(photos);
const input = await page.$('input[type="file"]');
await input.uploadFile(...files);