Phantomjs version 1.4 (the latest version is available through apt). I have one js file with this content:
var page = require('webpage').create(); var system = require('system');
When I ran it using:
phantomjs testscript.js
I get an error message:
undefined:0 Unknown module system for require()
What does it mean? What causes this? I tried to run the example from https://github.com/ariya/phantomjs/blob/master/examples/direction.js , but it seems I can not find the simplest job. Is there any other way to read command line arguments than using the system?
source share