Created
June 12, 2014 04:17
-
-
Save tdm00/7cf52fff3987b02c0264 to your computer and use it in GitHub Desktop.
CasperJS sample test file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = 'http://www.msu.edu'; | |
casper.test.begin('Lookup homepage', 1, function suite(test) { | |
casper.start(url, function() { | |
test.assertHttpStatus(200, "Web server returned page correctly"); | |
test.assertTitle('Michigan State University'); | |
}); | |
casper.run(function() { | |
test.done(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks Troy. This example just saved me a head ache.