mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
add casperjs
This commit is contained in:
11
casperjs/sample.js
Normal file
11
casperjs/sample.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var casper = require('casper').create();
|
||||
|
||||
casper.start('http://casperjs.org/', function() {
|
||||
this.echo(this.getTitle());
|
||||
});
|
||||
|
||||
casper.thenOpen('http://phantomjs.org', function() {
|
||||
this.echo(this.getTitle());
|
||||
});
|
||||
|
||||
casper.run();
|
||||
Reference in New Issue
Block a user