Skip to content

Instantly share code, notes, and snippets.

@bmccaffray
Created August 11, 2014 21:22
Show Gist options
  • Save bmccaffray/31b19a9fea902526fbf3 to your computer and use it in GitHub Desktop.
Save bmccaffray/31b19a9fea902526fbf3 to your computer and use it in GitHub Desktop.
casper test to check h1
casper.test.begin('check if url is your blog', 1, function suite(test){
casper.start('http://personal-blog-site.herokuapp.com/', function(){
this.echo(this.getHTML('.nav h1'));
});
casper.then(function(){
test.assertTextExists('my blog', 'it is in fact, your blog');
});
casper.run(function(){
test.done();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment