browser.wait.until.download_file#
Functions#
does_not_exist(file_name, timeout=None)
#
Wait until a file download does not exist, e.g. a temporary file created by the browser until download is complete.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_name | str | Name of the file to watch in the download directory, e.g. | required |
timeout | float | None | In seconds. Timeout to wait for file to not exist. If | None |
exists(file_name, timeout=None)
#
Wait until a file download exists.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_name | str | Name of the file to watch in the download directory, e.g. | required |
timeout | float | None | In seconds. Timeout to wait for file to exist. If | None |
size_does_not_increase(file_name, idle_download_timeout=None)
#
Wait until a file under download no longer exists or increases in size, for example a temporary file created by the browser until a download is complete.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_name | str | Name of the file to watch in the download directory, e.g. | required |
idle_download_timeout | float | None | In seconds. Timeout to wait for file size to not increase, which is constantly renewed as long as the file size increases. If | None |