Dim web As System.Windows.Forms.WebBrowser = e.Form.controls("webbrowser1").basecontrol
web.ScriptErrorsSuppressed = True
web.Navigate("http://123.57.251.28:8000/accounts/login/")
Do Until web.ReadyState = 4
Application.DoEvents
Loop
Dim el = web.Document.GetElementByID("login")
el.setattribute("value", "foxtable@163.com")
Dim el2 = web.Document.GetElementByID("password")
el2.setattribute("value", "123456")
Dim btns = web.Document.GetElementsByTagName("input")
For Each btn As object In btns
If btn.getattribute("value") = "登录" Then
btn.InvokeMember("click")
End If
Next