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

后端 未结 17 2337
暖寄归人
暖寄归人 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:31

    Let tell you a simple formula to find xpath of any element:

    1- Open site in browser

    2- Select element and right click on it

    3- Click inspect element option

    4- Right click on selected html

    5- choose option to copy xpath Use it where ever you need it

    This video link will be helpful for you. http://screencast.com/t/afXsaQXru

    Note: For advance options of xpath you must know regex or pattern of your html.

提交回复
热议问题