I have been trying to get my head around selenium to upload image in Facebook. As per this answer, I am able to do so using the following code:
driver.find_element_by_id("IdOfInputTypeFile").send_keys(os.getcwd()+"/image.png")
But, how can I add the caption to the very image on facebook?