CasperJS posting only the last item multiple times from my for-loop
问题 CasperJS is awesome but it's not posting to my localhost what my console output is. casper.wait(5000, function () { casper.wait(1000, function () { casper.then(function(){ for (var i = 0 ; i < 10; i++) { var description = casper.fetchText(x('//*[@id="acDataId-local'+i+'"]/a')); //*[@id="acDataId-local0"]/a console.log(description); var target_date = casper.fetchText(x('//*[@id="dtDataId-local'+i+'"]/text()[1]')); console.log(target_date); var target_location = casper.fetchText(x('//*[@id=