摘要: Web网页表格的结构一般为: table标签:表示表格元素; tbody标签:表示表格主体; tr标签:表示表格的一行; td标签:表示表格的一列。 依据此,可以实现表格解析代码如下: /// <summary> /// 解析指定页面中的表格数据,返回的DataTable的类型是element类型 阅读全文
posted @ 2021-02-12 22:30 顺其自然,道法自然 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 1、根据ID IWebElement FindElementById(string id) 2、根据链接文本 IWebElement FindElementByLinkText(string linkText); 3、根据元素内容 IWebElement FindElementByXPath(str 阅读全文
posted @ 2021-02-12 10:08 顺其自然,道法自然 阅读(1041) 评论(0) 推荐(0) 编辑