I'm trying to upload two files into an element on a webpage – however, after successfully uploading one and trying to upload the other, I get the following error:
Exception has occurred: StaleElementReferenceException Message: stale element reference: element is not attached to the page document
So, I was wondering if there was a way to upload two files at the EXACT same time. Although this doesn't work, it would work something like:
uploadFiles.send_keys("C:\\Users\\jack_l\\Desktop\\IMAGES\\" str(image) and "C:\\Users\\jack_l\\Documents\\Image-Line\\FL Studio\\Projects\\finished\\UPLOAD\\" str(file))
Any help would be appreciated.
CodePudding user response:
"C:\\Users\\jack_l\\Desktop\\IMAGES\\" str(image) "\n C:\\Users\\jack_l\\Documents\\Image-Line\\FL Studio\\Projects\\finished\\UPLOAD\\" str(file)
Should send two files to an input tag.
\n seperates each file path.