exists.js 268 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 casper.test.comment('Casper.exists()'); casper.start('tests/site/index.html', function() { this.test.assert(this.exists('a') && !this.exists('chucknorriz'), 'Casper.exists() can check if an element exists'); }); casper.run(function() { this.test.done(); });