Downloading a file from a website using Selenium web driver

Hello guys could you explain me how can I download any files from any website using Selenium webdriver?

For example when you try to download Selenium from http://www.seleniumhq.org/download/ and when you click DOWNLOAD button a seperate window will appear to SAVE or OPEN file. Please see the below attached screenshot so you can get an idea of my explanation. How can I interact with the buttons from the DOWNLOAD window that got popped up?

Downloading a file from a website using Selenium web driver

Train Asked on September 6, 2015 in Selenium WebDriver.
Add Comment
  • 2 Answer(s)

    Hi

    You cann’t manipulate with this popUp because it isn’t a browser window, it is OS window
    I use this

    http://kreisfahrer.gitbooks.io/selenium-webdriver/content/zagruzka_faila.html

    Reviewer Answered on September 7, 2015.
    Add Comment

    Thanks for your reply

    Train Answered on September 7, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.