0

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

1 Answer 1

0

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)")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.