Commit f8f51357 f8f51357414f4e4bc59dbc513397a628bf7c3433 by Trent Ohannessian

Add an event emit for clicking

Add an event emit for clicking, passing the selector.
1 parent 89cfda79
...@@ -467,6 +467,7 @@ Casper.prototype.click = function click(selector) { ...@@ -467,6 +467,7 @@ Casper.prototype.click = function click(selector) {
467 element.focus(); 467 element.focus();
468 } 468 }
469 }, selector); 469 }, selector);
470 this.emit('click', selector);
470 return success; 471 return success;
471 }; 472 };
472 473
......