假设我有以下HTML代码:
<a href="/site/somesite/"> somesite</a>
我的问题是如何编写一个必须使用该text()属性来匹配somesite链接的XPath表达式,我无法更改源代码?
text()
somesite
xpath
xpath ×1