Filling in a web page through code
What I want to do, is be able to click a command button. And have the App input my user name and password and then submit.
I have tried for a very long time now and cannot do it. Can someone PLEASE help me...
This is what I have created so far...
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("https://www.bigpond.com/mybigpond/default.asp")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Document.All(2).value = "My Email"
WebBrowser1.Document.All(3).value = "My Password"
End Sub
End Class
When run I get this error:
Error 1 'value' is not a member of 'System.Windows.Forms.HtmlElement'.
However, if I take 'value' out its...
Error 1 Property access must assign to the property or use its value.
And YES I have seen how to do this on the net, but for some reason it just will not work with the BigPond sight!
Can someone please help me!!!
Re: Filling in a web page through code
I have personally posted the code to do this many, many times, so you could try to search these forums. Instead of Value, use InnerText (or was it OuterText?)
Re: Filling in a web page through code
If anyone would be so kind as too please help me.
I have done as Atheist has said, however mine dose not work. If anyone can get there App too fill in the login text box's on
https://www.bigpond.com/mybigpond/default.asp
this would be very much helpful.
Thanks