I'm trying to use Webbrowser to automate a download on a page with anchors like this one:
<A href="Javascript:downloadBatch('198697193','4372')">
The first number is constant in the sense that it uniquely identifies an archived document. The 2nd number is also a constant, it is simply a process identifier (refers to the download-archived-document process).
I can download it using element.InvokeMember("click") but I have reliability issues with doing so and therefore I want to determine my other options. (I'm a begginer at automation).
I've tried to duplicate every example of InvokeScript and Navigate that I could find on the internet. Nothing seems to work. I usually get the following runtime error (or with some methods i just get silence).
A Runtime Error has occurred.
Do you wish to Debug?
Line: 0
Error: Object expected
Does this have something to do with frames? I don't know anything about frames but this page seems to be using them.
Although I've had success sending a click to this anchor, I've had trouble at some websites clicking anchors, so I would prefer to learn how to invoke this script more directly. Can anyone help?