C#控制浏览器自动填充表单
-
- htmlDocument doc = webBrowser1.Document;
- HtmlElement el = doc.GetElementById("下拉列表框的ID");
- el.SetAttribute("selectedIndex", "1"); //选择第二项,根据你情况自己设置
- el = null;
- doc = null;
- //该片段来自于http://www.codesnippet.cn/detail/290520133636.html
来源: http://www.codesnippet.cn/detail/290520133636.html