How to find xpath of an element in firefox inspector

后端 未结 10 734
清酒与你
清酒与你 2020-12-14 05:57

In Firefox 50.1, Firebug is no longer available so I have to use the inspector but I cannot find copy ---> xpath option that was available in Firebug. How can I find the xpa

10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-14 06:44

    You can't, firefox's inspector does not have such feature. However it does offer css selector which can be converted to xpath with various other tools.

    It should be noted however that these generated selectors (xpath or css) are not accurate or reliable and you should avoid using this feature for anything but rare edge cases.

提交回复
热议问题