Add an event emit for clicking

Add an event emit for clicking, passing the selector.
Added a test for click emit

Added a test for click emit
Merge pull request #850 from tohann/master

Add an event emit for clicking