0

i am making a chrome extension which will populate a JSON script about the element ! JSON will contain css selector and xpath. We can get xpath and css of any element by right click and copy xpath. but can i use this feature to get these two in my chrome extension ?

Abhishek Tripathi
  • 1,211
  • 2
  • 15
  • 30
  • Are you asking if it is possible or how to do it? –  Feb 25 '16 at 03:23
  • if it is possible ! then how can i get these in my extension on some click through my extension ! – Abhishek Tripathi Feb 25 '16 at 05:08
  • @DaMaxContent may you help ? – Abhishek Tripathi Feb 25 '16 at 09:44
  • Have you tried reading this? http://stackoverflow.com/questions/3030487/is-there-a-way-to-get-the-xpath-in-google-chrome – Android Enthusiast Feb 25 '16 at 10:48
  • @d.datul1990 yes i read ! i know that we can get xpath and selector by right click and copy them. my question is , is there a way to get these both in my chrome extension ? after clicking my extension button if anyone clicks anywhere on the page my extension will show both these. – Abhishek Tripathi Feb 25 '16 at 10:55
  • I am sorry, but I can not help you Ram, I am a member who has access to reviews. I review questions to be sure they are of good quality. I was making sure you were not wanting us to build it for you as that is not allowed/encouraged on the stack. We aim to teach, not to do-for. Does that make sense? –  Feb 26 '16 at 03:03
  • yeah its fine @DaMaxContent i will wait if someone can help or guide me :) i will build myself just want some guidance. – Abhishek Tripathi Feb 26 '16 at 04:47

0 Answers0