php-casperjs icon indicating copy to clipboard operation
php-casperjs copied to clipboard

User defined Javascript inside CasperJS script

Open hrhthegreat opened this issue 8 years ago • 2 comments

Hello,

As I saw the issue #31 , He requested to inject his own code inside CasperJS script. But the result code was only added one specific feature. Is there any possibility to inject my own Javascript inside? And also define custom variable for output and assign them in JS. $casper->addToScript(<<<FRAGMENT ... JS code ... FRAGMENT);

Thank you

hrhthegreat avatar Feb 20 '17 11:02 hrhthegreat

Hello, I have published v1.3.0 that come with this feature, I hope it will serve you well

alwex avatar Feb 20 '17 20:02 alwex

Oh, Thanks so much. ^_^

hrhthegreat avatar Feb 20 '17 22:02 hrhthegreat