Fix CoffeeScript example code
Fixes #796
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -138,7 +138,7 @@ You can also write Casper scripts using the `CoffeeScript syntax <http://jashken | ... | @@ -138,7 +138,7 @@ You can also write Casper scripts using the `CoffeeScript syntax <http://jashken |
138 | Array::map.call links, (e) -> e.getAttribute "href" | 138 | Array::map.call links, (e) -> e.getAttribute "href" |
139 | 139 | ||
140 | links = [] | 140 | links = [] |
141 | casper = require('casper').create() | 141 | casper = new require("casper").Casper |
142 | 142 | ||
143 | casper.start "http://google.fr/", -> | 143 | casper.start "http://google.fr/", -> |
144 | # search for 'casperjs' from google form | 144 | # search for 'casperjs' from google form | ... | ... |
-
Please register or sign in to post a comment