Answer the question
In order to leave comments, you need to log in
How to run casperjs via php script?
Hello! I study casperjs according to the documentation and through the terminal I can successfully run the example
script here is the script
var casper = require("casper").create();
casper.echo("Casper CLI passed args:");
require("utils").dump(casper.cli.args);
casper.echo("Casper CLI passed options:");
require("utils").dump(casper.cli.options);
casper.exit();
Answer the question
In order to leave comments, you need to log in
print shell_exec('casperjs test.js arg1 arg2 arg3 --foo=bar --plop anotherarg');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question