moonlight-coding / casper-nodejs

Control CasperJS from your nodejs application.
MIT License
15 stars 5 forks source link

Cannot run casper more than one time in one node process #4

Open BjoernRuberg opened 7 years ago

BjoernRuberg commented 7 years ago

I have code constantly running casper codes. It monitors the availability of webpages.

However, casper-nodejs is nur able to run more than one seperate capser processed, even serialized. I saw that the problem is the action_list.js and actions.js code which only inits once per node process.

It is easily fixeable by wrapping them into a function which is called when running the creation code. That way a new casper instance will receive its own action_list.

pelallemant commented 7 years ago

Hi. Thanks for the interest you have in the library.

As mentioned in https://github.com/moonlight-coding/casper-nodejs/issues/3 , i suggest to use selenium-webkit for nodejs which is far more complete.

I don't have time to maintain it, and since i've used selenium-webkit i think it's just a loss of time.