This is my first time posting. I’ve been working on a “web scraper” to navigate through a website and download an Excel File or .CSV file automatically.
I’m running into a problem when I want to download the file. Here is the HTML:
<"a class="PSQRYRESULTSTITLE" href="javascript: bSubmitted=false;submitAction_win2(document.win2,'#ICQryDownloadRaw');">CSV Text File<"/a>
When clicked it opens a download prompt to save.
- How do I trigger this prompt?
- Can I bypass the prompt so it downloads automatically?
I’m coding this in Visual Studio C# 2008. I am using a WebBrowser Control to navigate through the website.
I’ve tried everything from
webbrowser1.document.invokescript
to
storing all the elements in an HtmlElementCollection traversing through them and doing
invokemember(“click”)…
Nothing is working! Please help!
although this doesn’t answer my second question of how to automatically download the file or disable the prompt it got me moving forward finally. But if anyone has an answer for that it would be much appreciated.