Paste: casperjs, capture->change dom->capture gets the same .png twice

Author: erg
Mode: javascript
Date: Sat, 14 Dec 2013 01:48:11
Plain Text |
var casper = require('casper').create();
var utils = require('utils');

casper.start('http://localhost:3000', function() {
    utils.dump(this.getElementInfo('#plaintext'));

    this.then(function() {
        this.capture('./out0.png');
    });

    this.then(function() {
        this.evaluate(function() {
        document.getElementById('plaintext').textContent = 'new stuff here';
    })});

    this.then(function() {
        this.capture('./out1.png');
    });

    utils.dump(this.getElementInfo('#plaintext'));
});

casper.run();

New Annotation

Summary:
Author:
Mode:
Body: