Casperjs assertExists hack
casper.assertExists = function(selector,message) { return casper.test.assert(this.evaluate(function(selector) { return document.querySelectorAll(selector).length>0;
}, selector), message);
};
Written by Josep
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Casperjs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#