Open Spectraderr opened 11 months ago
Hi @Spectraderr ,
I haven't tried to upload video. But for picture, I use the following:
input_e = driver.find_element(by=By.XPATH, value="//input[@data-testid='fileInput']")
input_e.send_keys(os.path.join(os.getcwd(), "foto_twitter.jpg"))
time.sleep(2)
Cheers, Donny
There is no problem uploading photos, but unfortunately the video is not uploaded. There is no problem when doing it manually from the file selector. If you do the process with selenium, the video upload gives an error.
try to upload video with send_keys, getting an error on twitter page. Do you have a solution ?