Javascript – error on uploading file with playwright js
I use the upload function to recover a pdf file but the problem I receive the empty file : const uploadFile= async (page,documentPathCopy)=>{ const buffer = fs.readFileSync(documentPathCopy,'utf8'); // Create the DataTransfer and File let dataTransfer = await page.evaluateHandle((data) => {…