我正在WebBrowser中加载此页面 [可能是NSFW]当WebBrowser.ReadyState准备就绪时,我试图在WebBrowser.Document.DomDocument,WebBrowser.Document.Body.InnerHtml,WebBrowser.Document.Body.OuterHtml中看到我在WebBrowser中看到的页面。
WebBrowser b = new WebBrowser();
b.Navigate(url);
WaitBrowserLoading(b); //wait browser to complete loading
MessageBox.Show(b.Document.Body.OuterHtml);
MessageBox.Show(b.Document.Body.InnerHtml);
当我使用Chrome对其进行分析时,后两个函数都无法返回该页面。
有什么建议吗?
正确的结果是在webBrowser.Document.GetElementsByTagName(“ HTML”)[0] .OuterHtml中
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句