I want to use Selenium to test my Streamlit app. To do this, I need to upload a file to the st.file_uploader. The normal way to do this in Selenium is to send_keys to the element, but this only works if the element is the type, and none of the elements in the file uploader seem to be input type.
Is there any way around this? I can click the âBrowse Filesâ button but then it opens the Windows dialogue which is hard to control.