Selenium cannot find SVG element in XPath

前端 未结 2 1881
臣服心动
臣服心动 2020-12-14 07:03

I have the following HTML:

2条回答
  •  隐瞒了意图╮
    2020-12-14 07:06

    Try the following XPath expression:

    //*[local-name() = 'svg']
    

    (works at least from Chrome/FireBug console, haven't tried with Selenium yet)

提交回复
热议问题