I'm using Python & Selenium to download a large number of files (yes, I do need to). Currently, to make sure a file downloads, I have a simple time.sleep() statement, but I'd like to both improve efficiency and make guarantees that I've downloaded each file.
Unfortunately, I don't have a list of file paths such that I can use some other suggested solutions for general file downloads.
What I'm dealing with is the following on-click javascript:
onclick="javascript:__doPostBack('ctl00$MainContent$GridView1','OpenFile$0')
So I'd like to be able to detect that one file has begun downloading before clicking on the next one.
Any suggestions?