Closed crouti closed 6 years ago
Is there an other way i should use to pass to php-casperjs the path to casperjs executable, which is done here during Casper instanciation:
$casperJSExecutable = trailingslashit(realpath(dirname(__FILE__) . '/node_modules/casperjs/bin/casperjs'));
self::getLogger()->trace("Casper path : " . $casperJSExecutable);
$this->casper = new Casper($casperJSExecutable, '/tmp');
Is there a problem here ? Thanks
Ok, the path was not good, need to provide the parent directory, not the exe file:
$casperJSExecutable = trailingslashit(realpath(dirname(__FILE__) . '/node_modules/casperjs/bin/'));
Thanks for this!
Hi,
I am using php-casperjs in a wordpress plugin. I installed as recommended with
then
composer require phpcasperjs/phpcasperjs
i can initialize casper without error like this:
but as soon as i run it, the error in the title of this post appears
Any idea ? Thanks a lot