【问题标题】:How to get the nth table in webbrowser control?如何在 webbrowser 控件中获取第 n 个表?
【发布时间】:2014-12-18 02:15:40
【问题描述】:

我使用 webbrowser 控件并希望获取文档中的 n th 表。 webbrowser1.Document 包含 FormsImagesLinks 的元素数组...但不包含表格。

表格没有 ID,我需要访问 live 元素,我的意思是 HtmlAgilityPack 对我没有帮助。

【问题讨论】:

  • echo ini_get("upload_max_filesize"); 得到了什么?
  • post_max_size 为 10M 和 15M

标签: c# html webbrowser-control


【解决方案1】:

您可以使用HtmlAgilityPack 查找第n 个表。像

   Node = doc.DocumentNode.SelectSingleNode("//table[2]");

然后使用本帖描述的代码找到对应的直播元素Gettig Htmlelement based on HtmlAgilityPack.HtmlNode

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-13
    • 1970-01-01
    • 1970-01-01
    • 2011-12-03
    • 1970-01-01
    • 2011-12-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多