I've totally new to this. For practice I am trying to upload a facebook profile picture to my profile. It semi works but it uploads to the wrong place. Instead of uploading to the profile picture, it uploads into the banner area. I've tried other selectors but nothing is working. Does it only work with the input selector? How can I find a unique selector for the profile page? I've tried many but nothing is working.
const file2 = rndFile2();
await page.waitForSelector('input[type=file]');
const elementHandle = await page.$("input[type=file]");
await elementHandle.uploadFile(file2);