How to find xpath of an element in firefox inspector

后端 未结 10 725
清酒与你
清酒与你 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:38

    I know that this doesn't answer directly to the question but it helped me a lot, use Pale Moon:

    1. Open any web page in Pale Moon browser
    2. Right click on an element of the page
    3. Select: "Inspect Element with Developer Tools" (a window shows up with element highlighted)
    4. Right click highlighted element
    5. Select: "Copy XPath"

    And there you have it. You will get a "full" xpath even if the element has an id.

提交回复
热议问题