Is it possible to upload file attachment with selenium in Python script?
A simple method to upload files is by using pyautogui. You can install pyautogui through pip
import pyautogui
... # set the webdriver etc.
...
...
self.driver.find_element_by_id("Open file selector").click()# This opens the windows file selector
pyautogui.write('C:/path_to_file')
pyautogui.press('enter')