(未验证)
c#webBrowser 实现自动填入选择下拉列表
HtmlDocument doc = webBrowser1.Document; HtmlElement el = doc.GetElementById("下拉列表框的ID"); el.SetAttribute("selectedIndex", "1"); //选择第二项,根据你情况自己设置 el = null; doc = null;
Powered by: 博客园 Copyright © 2024 烈火123 Powered by .NET 8.0 on Kubernetes