Reputation: 2232
I am writting a protractor test case to download a file which can be of any type.
How do i check if the file is downloaded correctly or not?
Upvotes: 22
Views: 21978
Reputation: 16722
I was able to achieve download testing with Chrome.
Follow this config setup: https://stackoverflow.com/a/26127745/511069
Create a function waitFileExists(fileAbsPath)
and performs your expectations after the file is completely downloaded: https://stackoverflow.com/a/27031924/511069
Upvotes: 28