AxWebBrowser1.Document.Forms(0).All("action-download").click() why doesn't this work?

  • Thread starter Thread starter MeNotHome
  • Start date Start date
M

MeNotHome

I am trying to automate web browser navigation and form fill out in
vb.net

Why doesn't this work?

AxWebBrowser1.Document.Forms(0).All("action-download").click()
I also tried
AxWebBrowser1.Document.Forms(0).All.item("action-download").click()

"action-download" is the name of a submit button

Thanks for any help
 
Hi MeNo,

If the button does a submit, why not try acting on the form directly:
AxWebBrowser1.Document.Forms(0).submit

I don't know if it'll work, but it's what I've used in JavaScript with a
page.

Regards,
Fergus
 
Just a side question,

Have you been able to control the axwebbrowser resizing itself, based on the
html page.

My problem is that even though it is docked as full, it resizes it self to
1/3 the screen/form size when I load a web page.

Any tips for me....
thanks
 
Well this works if you have want the default button to fire.

AxWebBrowser1.Document.forms(0).submit()

The problem comes in because there are multiple buttons on this form.

Any ideas?

Thanks
 
Back
Top