phantomjs 2.0 remove the deprecated attribute `phantom.args`. Use the new `system` module.
6 lines
150 B
JavaScript
6 lines
150 B
JavaScript
// Load helper
|
|
var system = require('system');
|
|
phantom.injectJs(system.args[1]);
|
|
pt = new PhantomTest();
|
|
pt.run("/", "console.log('ok')", "console");
|