0

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.

suvi
  • 45
  • 1
  • 5

1 Answers1

1

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.

Community
  • 1
  • 1
titusfortner
  • 4,099
  • 2
  • 15
  • 29
  • No way to disable this pop up? This wouldn't happen in Chrome. – Gopal Jan 04 '17 at 05:38
  • IE is definitely not Chrome. :) – titusfortner Jan 04 '17 at 05:59
  • Yes, I am asking you whether is there anyway can we disable this pop up by changing any of the internet explorer setting? Possible? – Gopal Jan 04 '17 at 06:37
  • I think my answer above sufficiently addresses your question – titusfortner Jan 04 '17 at 06:38
  • I think you don't understand what I am asking. – Gopal Jan 04 '17 at 07:04
  • You are "... asking [me] whether is there anyway can we disable this pop up" to which I've already said: "The simple answer is that it isn't possible with Selenium and Internet Explorer, without mucking with the registry or using AutoIT". There's a link in the answer if you want to explore the options discussed there. – titusfortner Jan 04 '17 at 07:11
  • Yes, I have also found later that it can't be handle using selenium/watir alone. AutoIT and RAutomation are possible solutions to handle this, but I did't get any compact solution using either of this. titusfortner the link you have given isn't opening, not sure whether the link is broken or due to access restriction I'm not able to open the link. Can you please post here AutoIT code to handle above mentioned notification bar coming in IE-11 so that I can call/incorporate that code in my ruby-watir script. Thanks in Advance :) – suvi Jan 04 '17 at 09:13
  • @titusfortner That's what I said you did not understand what I have been asking. I did not ask whether we can handle that pop up. I asked you whether any internet option to disable that pop up! – Gopal Jan 04 '17 at 11:17