Downloading files from page using selenium

  • 1 Replies
  • 950 Views
Downloading files from page using selenium
« on: March 08, 2016, 19:37:27 pm »
How do i download files or check that file exists?

Also, is it possible to get size of file ?

Re: Downloading files from page using selenium
« Reply #1 on: March 09, 2016, 10:58:25 am »
To my knowledge it is not possible to have selenium download files for you since browsers use native dialogs for it that can't be controlled via javascript. You would need to do this in some unconventional way.

There's a nice blog post about this you might find interesting:
https://blog.codecentric.de/en/2010/07/file-downloads-with-selenium-mission-impossible/

 

Sitemap 1 2 3 4 5 6 7 8