How can I perform visual screenshot based testing of my locally hosted web apps?

I want to know how can I perform visual screenshot based testing of my locally hosted web apps, can anyone please tell me with that.