I'm new to PhantomJS and not very good with Javascript to be honest. I'm looking to take a snapshot of a given website but only the selected dom element. So command wise it would look a little like
phantomjs http://fabieno.com #nav
And it would take a picture of the nav bar. Or whatever the selector selects. I guess it multiple existences exists then multiple snapshots would be necessary. Only problem is being so new it leaves me with a big ? in my head. Any help you guys could provide would be greatly appreciated.
From my research I have only really found. https://gist.github.com/n1k0/1501173
But I am unsure how it works or if it does want I am asking.
Kind regards,
Fab