简体   繁体   中英

How to track downloading of file with Web Automation and Selenium?

I need to download file from the page and to track how much time it took to completely download a file from web. Does anyone knows how to implement it? When i click " Download "on web it opens for me a Native Mac Download menu, and i can automate click "Save File" by automating with a KeyKodes.

But the problem is: How to check that, that exactly file or folder got completely downloaded? As well as track the time how long it took to download. Another concern if i will download folder for example with 300GB data, the folder will appear immediately but it will don`t mean that it get complete download of all files.

Does anyone have any ideas?

Hope this helps, While downloading selenium jar file, it has ".crdownload" extension and after complete download it changed to ".jar" (This could be the approach to track whether file is downloaded or not). not sure about time tracking.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM