Hi! I have created one program with this code for website login:
I take the element for password and username with Horme and i found name="username" and name="password" for the 2 input of enter login datas, but when i try with the button (Access) i don't found the name...how can i found it?
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.facebook.com")
WebBrowser1.ScriptErrorsSuppressed = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
End Sub
End Class