【发布时间】:2010-10-26 06:52:18
【问题描述】:
您如何使用 CSS 获得以下标签?
<p>You can only use the text inside the tag</p>
在 xpath 中我会使用以下内容:
//p[contains(text(), "inside the tag")
PS:我无法关闭 xpath,它会尝试使用代码自动完成...:S
【问题讨论】:
-
我不相信纯 CSS 可以做到这一点。
标签: css selenium css-selectors