How to handle file download in Internet Explorer 11 using Ruby-Watir

759 views Asked by At

I'm new to Ruby-Watir automation. I want to save a file, after clicking on "Download Report" link available on the web page(Opened in IE-11). It's giving me a pop-up to save the file at bottom of the browser. enter image description here

Can anyone please help me with Ruby-Watir code to handle such popup in Internet Explorer 11? Kindly let me know if any other details required.

1

There are 1 answers

8
titusfortner On

The simple answer is that it isn't possible with Selenium and Internet Explorer, without mucking with the registry or using AutoIT. Downloading with IE requires interaction with the operating system, which is beyond Selenium's capabilities.

Also, here's an article about why you probably actually don't need to test downloads, regardless.