无法点击邮轮号码(svg element xpath)

时间:2017-03-15 05:29:11

标签: svg xpath

我在使用xpath查找房间号时遇到问题。房间号码属于游轮派对。

这是svg图像链接,我为其分配了房间号的xpath。

https://secure.stg1.espresso.cruisingpower.com/cruisingpower/content/shared_assets/svg/svg_r_AN_1734/IDP-DECK08.svg

我想点击其中一个房间。

我在xpath下面使用过:

//svg:path[@id='R8320' and @style='fill: #D3B6D7;stroke:#999999; cursor: pointer;']

它正在Firefox中找到xpath但是当我运行它时它不会点击。

我使用了svg xpaths的许多组合。他们都没有工作。

1 个答案:

答案 0 :(得分:0)

尝试//*[@id='R8320']//*[local-name()='path' and @id='R8320']//*[local-name()='svg']//*[local-name()='path' and @id='R8320']

这些元素应该是可点击的吗?