Is it possible to upload file attachment with selenium in Python script?
button = driver.find_element_by_xpath("xpathToYourButton")
button.send_keys("fullPathToFile")
Now if you are in windows path to file uses backslash. To avoid issues use double backslashes! C:\ \Users\ ****\ \Desktop\ \1.jpg without spaces.
PS. I know its a from 4 years ago but I have been trying to figure this out for some time and someone might find this usefull...