alwex / php-casperjs

simple PHP wrapper for CasperJS
MIT License
182 stars 71 forks source link

User defined Javascript inside CasperJS script #35

Open hrhthegreat opened 7 years ago

hrhthegreat commented 7 years ago

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

alwex commented 7 years ago

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

hrhthegreat commented 7 years ago

Oh, Thanks so much. ^_^