1
Reply

Downloading from a URL gives an aspx fileinstead of the file

Abhirup Ghosh

Abhirup Ghosh

Aug 26 2017 1:20 AM
199
am trying to use Selenium to open a URL in Chrome and hit a button, which will download a text file for me. But it's giving me an aspx page instead of the text file.

It's working fine if I do this manually in Chrome.
I also tried to do this with a Firefox driver but I got the same issue.

I am opening the url using driver.Navigate().GoToUrl().

Can you guys please help me on this?


Answers (1)