473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 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 5921
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
25
by: MeNotHome | last post by:
I am automating the navigation of a website. When I reach the end, it changes to xml. So my axwebbrowser1 has a bunch of xml data in it. So here is what I am trying to do Dim xmlText As...
1
by: sbcglobal | last post by:
I am trying to use a webbrowser control to get html file from web, the sample code in http://support.microsoft.com/?kbid=311284 like this Dim doc As mshtml.HTMLDocument doc =...
3
by: Danny | last post by:
i am trying to load different pages and scanning some words out of the pages. But my problem is that the readystate is never 4 except when i show a msgbox example: ...
2
by: effendi | last post by:
Hi I tested the following function in Safari and it doesnt work. This is tested fine in IE. function processOutcome(){ mainDatabase=document.forms.AssessDatabase.value var...
1
by: bs9999 | last post by:
Can someone please tell me why when i use <object>.clondeNode that when I appendChild it to my document, the new node doesnt properly work? I'm making a clone of a <scriptand <linknode from an...
2
Thew
by: Thew | last post by:
<script language="javascript" type="text/javascript"> function spoilershow(){ document.getElementById("spoiler").style.visibility='visible'; document.getElementById("show").value='close';...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.