Here is my code:
var casper = require('casper').create({
clientScripts: ["jquery.js"]
});
var URL = casper.cli.get(0);
casper.start(URL, function (){
casper.evaluate(function() {
$(".tm-price").html("123");
});
});
casper.then(function(){
this.capture('nn.png');
});
casper.run();
I wanna to change the ".tm-price"'s html to "123",and then capture the screen.
How ever after run it ,it only capture the screen before I change it,but not after I change it.
What's wrong with my code.Would you please help me?Thank you.