Seeker
Feb 23rd, 2001, 10:06 PM
Hi all
I got a little problem with my Webbrowser. I want to let it fill out some Webforms by itself. Just the same as an Cookie, but stored in a Database. So how can I send the needet Text to the fields on a Webpage ? I wanna make it possible that my browser do all by itself e.g. fill out username and passwort. I got it work that it fills out normal textboxes and some Comboboxes. But if the Combobox has no Value, it doesnt work. Also I got a problem with the Buttons. If it is an normal button, I can easily click it, but what is the code to click a gif picture if it is the "button" ? Hope anyone can help me coz IŽm searching since a long time for a solution for that. For those who didnt understand what I mean:
To fill out a normal Textbox, I use:
Set objinput = webbrowser1.Document.All.tags("input")
objinput(6).Value = "whatever I want"
For a combobox with values:
Set objselect = webbrowser1.Document.All.tags("select")
objselect(0).Value = "an existing value"
For normal buttons:
webbrowser1.Document.Forms(0).Elements(24).Click
(The numbers in the"()" are the numbers of the elements on the Webpage.
Ok, I hope everyone has understod what I mean, and someone can help me with this. Thx for reading this post.
Seeker
P.S. sorry for my bad english
I got a little problem with my Webbrowser. I want to let it fill out some Webforms by itself. Just the same as an Cookie, but stored in a Database. So how can I send the needet Text to the fields on a Webpage ? I wanna make it possible that my browser do all by itself e.g. fill out username and passwort. I got it work that it fills out normal textboxes and some Comboboxes. But if the Combobox has no Value, it doesnt work. Also I got a problem with the Buttons. If it is an normal button, I can easily click it, but what is the code to click a gif picture if it is the "button" ? Hope anyone can help me coz IŽm searching since a long time for a solution for that. For those who didnt understand what I mean:
To fill out a normal Textbox, I use:
Set objinput = webbrowser1.Document.All.tags("input")
objinput(6).Value = "whatever I want"
For a combobox with values:
Set objselect = webbrowser1.Document.All.tags("select")
objselect(0).Value = "an existing value"
For normal buttons:
webbrowser1.Document.Forms(0).Elements(24).Click
(The numbers in the"()" are the numbers of the elements on the Webpage.
Ok, I hope everyone has understod what I mean, and someone can help me with this. Thx for reading this post.
Seeker
P.S. sorry for my bad english