Dim web As new windows.forms.webbrowser
web.ScriptErrorsSuppressed = True
web.Navigate("网址一")
Do Until web.ReadyState = 4
Application.DoEvents
Loop
For Each archor As object In web.Document.Forms
archor.SetAttribute("target", "_self")
Next
Dim loginId = web.Document.GetElementById("用户名")
Dim password = web.Document.GetElementById("密码")
Dim Image2 = web.Document.GetElementById("yt0")
loginId.setAttribute("value", "222")
password.setAttribute("value", "666")
msgbox("填入了用户名和密码")
image2.InvokeMember("click")
Dim web As new windows.forms.webbrowser
web.ScriptErrorsSuppressed = True
web.Navigate("网址二")
Do Until web.ReadyState = 4
Application.DoEvents
Loop
For Each archor As object In web.Document.Forms
archor.SetAttribute("target", "_self")
Next
Dim loginId = web.Document.GetElementById("LoginValidIP[ip]")
Dim password = web.Document.GetElementById("LoginValidIP[storeName]")
Dim Image2 = web.Document.GetElementById("yt0")
loginId.setAttribute("value", "175.168.76.1")
password.setAttribute("value", "6666")
msgbox("填写了ip及信息")
image2.InvokeMember("click")
web.Dispose()
GC.Collect()