I use webbrowser control and want to get the n th table in the document. webbrowser1.Document
has arrays of elements for Forms
, Images
, Links
... but not for tables.
There is no Id for the table and I need to access the live element, I mean HtmlAgilityPack
doesn't help me.
You can use HtmlAgilityPack
to find the nth table. something like
Node = doc.DocumentNode.SelectSingleNode("//table[2]");
Then use the code described in this post to find the corresponding live element Gettig Htmlelement based on HtmlAgilityPack.HtmlNode
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.