Add an event emit for clicking
Add an event emit for clicking, passing the selector.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment