Reputation: 25
I am using selenium application to download an excel file from web. The file is downloaded in read only format, that is it doesn't gets saved after downloading. But once it downloads before opening the excel throws a security warning in which it has 2 buttons-enable and disable. Since I am coding in c#, I want c# to handle that window.
That is I want c# to click on "Enable" button of that excel sheet. Is it possible?? Any comments would be really appreciated..
thanks
Upvotes: 0
Views: 936
Reputation: 41
To add a trusted location in Excel:
Upvotes: 1
Reputation: 1871
I am not that familiar with selenium, but you could use native SendKeys or simular interface to navigate the popup.
A different approach could be using the windows automation api.
Upvotes: 0