Is there a way to get the XPath in Google Chrome?

后端 未结 17 2262
暖寄归人
暖寄归人 2020-11-22 13:53

I have a webpage I want to use with YQL. But I need the XPath of a specific item. I can see it in the debug tools area for Google Chrome but I don\'t see a way to copy tha

17条回答
  •  庸人自扰
    2020-11-22 14:35

    You can use $x in the Chrome javascript console. No extensions needed.

    ex: $x("//img")

    Also the search box in the web inspector will accept xpath

提交回复
热议问题