I am visiting a website regularly and need to download a file. When I visit the site it prompt me for login (No separate page for login. they might have used a script on Default.aspx) and then I need to make 3, 4 more clicks. After that I reach my file-download link.
I also tried to use Javascript make auto clicks and download file. I succeed upto loged-in but further it gives me error “Permission Denied” means cross domain problem when using iFrames and doesn’t let me do it with Javascript.
Please let me know any alternative solution.
Thanks
Since you are using C#.NET, I would suggest you to use Selenium.NET in order to navigate the website (i.e., for login). I had used FirefoxDriver from that package for navigation.
For downloading you should use WebClient to download the required file.