Commit f2a65c66 f2a65c66c80684277c1e57aaff1bfd07a6a3eaa6 by Nicolas Perriault

Merge pull request #554 from jayseeg/copy-update-selector-docs

refs #545 - Copy update in docs. Updated the selector doc page to use 't...
2 parents 76b7f73f eed0592d
......@@ -52,7 +52,7 @@ Or if you're using the :doc:`testing framework <testing>`::
casper.test.begin('The heading exists', 1, function suite(test) {
casper.start('http://domain.tld/page.html', function() {
this.assertExists('h1.page-title');
test.assertExists('h1.page-title');
}).run(function() {
test.done();
});
......@@ -62,9 +62,9 @@ Some other convenient testing methods are relying on selectors::
casper.test.begin('Page content tests', 3, function suite(test) {
casper.start('http://domain.tld/page.html', function() {
this.assertExists('h1.page-title');
this.assertSelectorHasText('h1.page-title', 'Hello');
this.assertVisible('footer');
test.assertExists('h1.page-title');
test.assertSelectorHasText('h1.page-title', 'Hello');
test.assertVisible('footer');
}).run(function() {
test.done();
});
......