Tag: htmlelements

如何从WPF WebBrowser获取HtmlElementCollection

我的旧WinForm应用程序使用HtmlElementCollection来处理页面 HtmlElementCollection hec = this.webbrowser.Document.GetElementsByTagName(“input”); 在WPF WebBrowser中,有几个不同的东西。 例如 this.webbrowser.Document没有任何名为GetElementsByTagName的方法 因此我的代码无法获取HtmlElementCollection