469,900 Members | 1,474 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,900 developers. It's quick & easy.

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

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
Nov 20 '05 #1
3 5737
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
Nov 20 '05 #2
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

"MeNotHome" <dtfa@****nospm****insightbb.com> wrote in message
news:9s********************************@4ax.com...
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

Nov 20 '05 #3
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

On Wed, 1 Oct 2003 02:13:42 +0100, "Fergus Cooney"
<fi******@tesco.net> wrote:
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


Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by sbcglobal | last post: by
2 posts views Thread by effendi | last post: by
1 post views Thread by bs9999 | last post: by
Thew
2 posts views Thread by Thew | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.