如何制作XPATH,其中包含启动并不包含末端的属性?
我需要创建一个 XPath。
我正在编写一个脚本并尝试从页面中获取确切的元素。
I need to make an XPath.
I am writing a script and trying to get an exact element from the page.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
selenium 支持 xpath-1.0
其中
end-with()
不是 xpath v1.0 的一部分,而是 < xpath v2.0 规格。因此,您不能直接使用
end-with()
子句。Selenium supports xpath-1.0
Where as
ends-with()
isn't part of xpath v1.0 but a part of xpath v2.0 specifications.Hence, you can't use the
ends-with()
clause directly.