title: CSS query generation APIs
body: <p>I have had enough search on this topic and could not find a suitable answer, finally my question is Does any one know any APIs which I can use to generate CSS query from the web page, similar to the Xpath we get it from Mozilla or chrome plugins.</p>
  
  <p>attached is the image for reference.</p>
  
  <p><img src="https://i.stack.imgur.com/Og2hQ.png" alt="Similar to copyXpath"> </p>
  
  <p>On the similar lines of this image, I need API for CSSQuery which gives me CSS query for selected element</p>