I'm trying to automate a process on a web page
Using the following command I can start an automated download (works fine)
WebBrowser1.Navigate("java
script:for
mAction('d
ownload')"
)
Calling the javascript function does not work
WebBrowser1.Navigate("java
script:Che
ckAll('the
Form')")
I suspect I need to use something like this: (Does not work)
WebBrowser1.Document.Invok
eScript("C
heckAll(th
is.form)")
If I use WebBrowser1.Document.Invok
eScript("C
heckAll")
It executes but, I get an error message
"abinumber is null or not an object"
I know just enough vb.net to be dangerous
Here is the javacode from the website that I want to execute
function CheckAll(theForm) {
for (i = 0; i < theForm.abinumber.length; i++) {
if (theForm.check_all.value == " All ")
theForm.abinumber[i].check
ed = true;
else
theForm.abinumber[i].check
ed = false;