I am using a program where I have to go through through a series of clicks which eventually the user to upload a file from the file explorer window and select a file to upload.
I have managed to get python to navigate through the menus to get to the file explorer prompt. Is there a way to automatically specify which file to select from the prompt window based on either the file name or extension? I dont want to do it graphically because it could get risky.
So far I only found something to click on a file from a window that the user himself opens:
import subprocess
subprocess.Popen(r'explorer /select,"C:\Users\333\Desktop\123.txt"')
How can I navigate through a file explorer window that opened on its own?