I am doing a script that publishes photos to Instagram automatically. I control Instagram web with selenium but when I press the button to update a photo, the file navigator pops-up and I can't still control it with selenium. File navigator Photo
I would need to go to my image path(Desktop/bot/img.png) and open it. Is there any library or something that could allow me to do this?
Thanks
No one can advise you without any information such as html.
As I think you can find <input... > tag in Instagram HTML. (please find near upload button.)
If there is it, you can use below sentence.
.find_element_by_xpath("(xpath of input tag)").send_keys("(file path)")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.