(未验证)
c#webBrowser 实现自动填入选择下拉列表
HtmlDocument doc = webBrowser1.Document; HtmlElement el = doc.GetElementById("下拉列表框的ID"); el.SetAttribute("selectedIndex", "1"); //选择第二项,根据你情况自己设置 el = null; doc = null;
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3