added tests for Casper#exists
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -33,6 +33,7 @@ casper.options.verbose = true; | ... | @@ -33,6 +33,7 @@ casper.options.verbose = true; |
33 | // Casper#start() | 33 | // Casper#start() |
34 | casper.test.comment('navigating'); | 34 | casper.test.comment('navigating'); |
35 | casper.start('tests/site/index.html', function(self) { | 35 | casper.start('tests/site/index.html', function(self) { |
36 | self.test.assert(self.exists('a') && !self.exists('chucknorriz'), 'exists() can check if an element exists'); | ||
36 | self.test.assertTitle('CasperJS test index', 'start() casper can start itself an open an url'); | 37 | self.test.assertTitle('CasperJS test index', 'start() casper can start itself an open an url'); |
37 | self.test.assertEval(function() { | 38 | self.test.assertEval(function() { |
38 | return typeof(__utils__) === "object"; | 39 | return typeof(__utils__) === "object"; | ... | ... |
-
Please register or sign in to post a comment