【发布时间】:2011-10-20 01:23:55
【问题描述】:
我有以下 HTML:
<div id="imageholder>
<svg>
<g> <image href='blah.gif'> </g>
</svg>
</div>
而且我似乎根本无法在 Firefox 上找到带有 selenium IDE 的 svg。我试过了:
//svg
//svg:svg
//*[name()='svg']
//*[namespace-uri()='http://www.w3.org/2000/svg']
他们都无法找到我的 svg 元素。有时我会收到错误:
error = TypeError: e.scrollIntoView is not a function
如果有帮助,我将使用它作为在 JUnit 4 测试中使用定位器的方法。
【问题讨论】:
标签: testing xpath selenium junit svg