Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
- doc.LoadHtml(webBrowser1.Document.Body.InnerHtml);
- var pars = doc.DocumentNode.SelectNodes("//p");
- foreach (HtmlNode item in pars)
- {
- HtmlElement element = ElementFromWebBrowserControlWhichMatches(item);
- // ElementFromWebBrowserControlWhichMatches is what I am searching for
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement