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.
attached is the image for reference.
On the similar lines of this image, I need API for CSSQuery which gives me CSS query for selected element