【发布时间】:2019-08-24 19:00:00
【问题描述】:
在下面提供了一个 xpath:
<svg:image xlink:href="some.svg" class="holder-38" width="24" height="268" preserveAspectRatio="none" x="426.7" y="473" type="image/svg+xml" data-ember-action="" data-ember-action-12238="12238">
我可以使用 xpath 访问它(没有标记为 '*'):
'//*[@class="holder-38"]'
但无法使用svg:image标签访问:
'//svg:image[@class="holder-38"]'
如何在此处指定标签?
【问题讨论】:
-
我已经回滚了您对问题的上次编辑,因此问题标题更通用,对社区和未来的读者有帮助。
标签: python selenium svg xpath webdriverwait