How can I automate downloads using IDM?

Viewed 279

I want to automate downloading using selenium python which in turn carries the link to IDM. However, the thing is I can't get to download using IDM.

1 Answers

Thisis not good practice in selenium automation

Whilst it is possible to start a download by clicking a link with a browser under Selenium’s control, the API does not expose download progress, making it less than ideal for testing downloaded files. This is because downloading files is not considered an important aspect of emulating user interaction with the web platform. Instead, find the link using Selenium (and any required cookies) and pass it to a HTTP request library like libcurl.

Please refer seleniumhq site

Related