This is the code used in the video. You will need to edit it, as not every website uses the same elements and ID. I've marked in red the parts you will need to edit, but leave the rest unedited.
- Spoiler:
- Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _Handles Button1.Click
WebBrowser1.Navigate("TextBox1.Text")
End Sub
'Changed the navigation URL to TextBox1 to allow user to choose
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _Handles Button2.Click
WebBrowser1.Document.GetElementById("login").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("passwd").SetAttribute("value", TextBox3.Text)
WebBrowser1.Document.GetElementById(".save").InvokeMember("click")
End Sub
End Class