XPath表达式获取当前节点的指定兄弟节点
正常页面上的复选框会有以下两种形式:
1、文字在复选框前面
//input[@type='checkbox' and contains(preceding-sibling::text()[1],'AAA')]"
2、复选框在文字前面
//input[@type='checkbox' and contains(following-sibling::text()[1],'A...
原创
2011-11-23 12:58:19 ·
657 阅读 ·
0 评论