开发者

Xpath: how to find tables with header names equals 'headerName'

开发者 https://www.devze.com 2023-03-15 16:51 出处:网络
Using xpath to find tables which match: he开发者_开发问答ader text at column 1 is \"header1\" AND header text at column2 is \"header2\"...etc.Assuming you are talking about HTML tables: //table[thead/

Using xpath to find tables which match: he开发者_开发问答ader text at column 1 is "header1" AND header text at column2 is "header2"...etc.


Assuming you are talking about HTML tables: //table[thead/tr/th[1] = 'header1' and thead/tr/th[2] = 'header2'].


//table[columns[1]/header/text() = 'header1' and columns[2]/header/text() = 'header2']
0

精彩评论

暂无评论...
验证码 换一张
取 消