473,612 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AxWebBrowser1.D ocument.Forms(0 ).All("action-download").clic k() 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.D ocument.Forms(0 ).All("action-download").clic k()
I also tried
AxWebBrowser1.D ocument.Forms(0 ).All.item("act ion-download").clic k()

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

Thanks for any help
Nov 20 '05 #1
3 5937
Hi MeNo,

If the button does a submit, why not try acting on the form directly:
AxWebBrowser1.D ocument.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.c om> wrote in message
news:9s******** *************** *********@4ax.c om...
I am trying to automate web browser navigation and form fill out in
vb.net

Why doesn't this work?

AxWebBrowser1.D ocument.Forms(0 ).All("action-download").clic k()
I also tried
AxWebBrowser1.D ocument.Forms(0 ).All.item("act ion-download").clic k()

"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.D ocument.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.D ocument.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
3592
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> </head> <style type="text/css">
25
2946
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 String Dim doc As New XmlDocument() Dim myElem As XmlElement
1
1395
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 = AxWebBrowser1.Document but mshtml.HTMLDocument is not defined in vb .net 2003, did I miss something?
3
3025
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: axWebbrowser.Navigate(sUrlPart1+ sUrl) while axWebbrowser.Readystate <> SHDocVm.tagReEADYSTATE_COMPLETE iReadystate = axWebbrowser.Readystate end while
2
2819
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 oCheckboxs=document.forms.TeamID if (oCheckboxs=="undefined" )
1
2474
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 iframe on my page. The cloned node looks fine, and even appends to my document fine. Viewing innerHTML confirms it is appart of my document. The problem is when i do something like alert(myTestVar), where myTestVar was originally a javascript...
2
2205
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'; document.getElementById("show").onclick='spoilerhide()'; } function spoilerhide(){
0
8105
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8565
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8415
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7039
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5532
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4045
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4109
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1413
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.