mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
12 lines
269 B
CoffeeScript
12 lines
269 B
CoffeeScript
casper = require("casper").create()
|
|
|
|
# listening to a custom event
|
|
casper.on "google.loaded", (title) ->
|
|
@echo "Google page title is #{title}"
|
|
|
|
casper.start "http://google.com/", ->
|
|
# emitting a custom event
|
|
@emit "google.loaded", @getTitle()
|
|
|
|
casper.run()
|