LoginSignup
0
0

More than 5 years have passed since last update.

CasperJS内でcasperjs --versionとphantomjs --versionの確認をする

Posted at
String.prototype.trim = function () {
    return this.replace(/^\s+|\s+$/g, '');
};
require("child_process").execFile("/usr/local/bin/casperjs", ["--version"], null, function (err, stdout, stderr){
    test.assertEqual("1.1.0-beta3", stdout.trim());
});
String.prototype.trim = function () {
    return this.replace(/^\s+|\s+$/g, '');
};
require("child_process").execFile("/usr/local/bin/phantomjs", ["--version"], null, function (err, stdout, stderr){
    test.assertEqual("1.9.7", stdout.trim());
});
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0