I want css selector Output, When I click anywhere inside iframe which content web url as source,I want to take screenshot of div (which maybe a parent), So for this I am using urlbox screenshot service to take screenshot
This library required 2 main parameter to get screenshot
1) html - which content html code I want to take screenshot
2) target selector - which content section or main div(maybe parent) of clicked element.
**the target selector is like this ** .page-homepage-about > .inner or div:nth-child(2) > div > h2
I have gone through this link Get unique selector of element in Jquery But I didn't know how can I use in Jquery - after onclicking element.
How can I get get target selector
Please help me with this.