Simply trigger DOM events on any element.
npm install simulate-event --save-dev
// Simulate an event on an element
simulateEvent.simulate(document.body, 'click');
// Generate an event for custom use
var evt = simulateEvent.generate('click', { clientX: 10 });
MIT