16,554
社区成员
发帖
与我相关
我的任务
分享
WebBrowser wb;
HtmlDocument doc= wb.Document.GetElementById("login_frame").Document;
HtmlElement name=doc.GetElementById("username");
name.SetAttribute("value", "123");
HtmlElement pwd = doc.GetElementById("userpwd");
pwd.SetAttribute("value", "123");
doc.GetElementById("submitBtn").InvokeMember("click");
webBrowser.Navigate(JavaScriptCode);