windows - CasperJS script never exits -
my casperjs script never stops executing.
var casper = require('casper').create(); casper.useragent('mozilla/5.0 (windows nt 6.3; wow64) applewebkit/537.36(khtml, gecko) chrome/41.0.2272.101 safari/537.36'); casper.start('https://www.google.co.in/',function(){ casper.wait(3000,function(){ this.echo(this.gettitle()); }); }); casper.run();
it looks if casperjs never exits. issue on windows. see this:
c:\> casperjs script.js c:\> script output more script output _
it has how casperjs installed , invoked. happens when have cygwin installed , install casperjs through npm. npm detect have cygwin , create special batch file start casperjs with. there somewhere bug how whole situation handled, doesn't affect functionality of casperjs.
if press enter, see prompt again:
c:\> casperjs script.js c:\> script output more script output c:\> _
if use casperjs master branch on github, proper exe file executes without issues. see installing git. has advantage can use phantomjs 2, because not possible current release of version 1.1-beta3.
Comments
Post a Comment