0

I just want to know the good approach and ways to check if the download links in a page is not broken. Is it the same as checking the broken links?

kenicky
  • 431
  • 4
  • 14

1 Answers1

1

As the download file dialog is a browser window to which selenium has no direct access you have two options:

  1. Configure your browser to auto-download the flies to some directory, click on the link and check the file
  2. Get the href value of the link and check the response code with other utilities than selenium.
Community
  • 1
  • 1
Sebastian
  • 5,721
  • 3
  • 43
  • 69