472,121 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

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 5818
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.