By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,782 Members | 1,328 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,782 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.