fetchtext.js 309 Bytes
(function(t) {
    t.comment('Casper.fetchText()');

    casper.start('tests/site/index.html', function(self) {
        t.assertEquals(self.fetchText('ul li'), 'onetwothree', 'Casper.fetchText() can retrieve text contents');
    });

    casper.run(function(self) {
        t.done();
    });
})(casper.test);