python selenium, find out when a download has completed?

0
0

I’ve used selenium to initiate a download. After the download is complete, certain actions need to be taken, is there any simple method to find out when a download has complete? (I am using the FireFox driver)

  • You must to post comments
0
0

There is no built-in to selenium way to wait for the download to be completed.


The general idea here would be to wait until a file would appear in your “Downloads” directory.

This might either be achieved by looping over and over again checking for file existence:

Or, by using things like watchdog to monitor a directory:

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website