- 12 Mar, 2013 3 commits
-
-
- 25 Feb, 2013 1 commit
-
-
- 21 Feb, 2013 1 commit
-
-
- 08 Feb, 2013 1 commit
-
-
- 07 Feb, 2013 1 commit
-
-
- 30 Jan, 2013 1 commit
-
-
- 17 Jan, 2013 1 commit
-
-
- 13 Jan, 2013 1 commit
-
-
- 29 Dec, 2012 1 commit
-
-
- 24 Dec, 2012 1 commit
-
-
- 23 Dec, 2012 1 commit
-
-
- 19 Dec, 2012 1 commit
-
-
- 18 Dec, 2012 3 commits
-
-
- 14 Dec, 2012 1 commit
-
-
- 10 Dec, 2012 2 commits
-
-
- 08 Dec, 2012 2 commits
-
-
- 06 Dec, 2012 1 commit
-
-
PhantomJS 1.7 ships with support for child pages (say popups and frames). CasperJS can now wait for a child being opened and loaded to react accordingly using these two new methods: ```js casper.start('http://foo.bar/').then(function() { this.test.assertTitle('Main page title'); this.clickLabel('Open me a popup'); }); casper.waitForPage(/popup\.html$/, function() { this.withChildPage(this.childPages[0], function() { this.test.assertTitle('Popup title'); }); }); casper.then(function() { this.test.assertTitle('Main page title'); }); ```
Nicolas Perriault authored
-
- 03 Dec, 2012 1 commit
-
-
- 02 Dec, 2012 3 commits
-
-
-
-
In order to check that every planned test has actually been executed, a new optional `planned` parameter has been added to `Tester.done()`: ```js casper.test.assert(true); casper.test.assert(true); casper.test.assert(true); casper.test.done(4); ``` Will trigger a failure: ``` fail: 4 tests planned, 3 tests executed. ```
Nicolas Perriault authored
-
- 28 Nov, 2012 2 commits
-
-
- 23 Nov, 2012 1 commit
-
-
- 22 Nov, 2012 1 commit
-
-
`Casper.evaluate()` method signature is now compatible with PhantomJS' one, so you can now write: ```js casper.evaluate(function(a, b) { return a === "foo" && b === "bar"; }, "foo", "bar"); // true ``` The old way to pass arguments has been kept backward compatible in order not to break your existing scripts though: ```js casper.evaluate(function(a, b) { return a === "foo" && b === "bar"; }, {a: "foo", b: "bar"}); // true ```
Nicolas Perriault authored
-
- 21 Nov, 2012 3 commits
-
-
-
-
A new `remoteScripts` casper option has been added in order to load remote client scripts into the page DOM environment: ```javascript var casper = require('casper').create({ remoteScripts: ['http://code.jquery.com/jquery-1.8.3.min.js', 'http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js'] }); ```
Nicolas Perriault authored
-
- 18 Nov, 2012 1 commit
-
-
- 15 Nov, 2012 1 commit
-
-
- 14 Nov, 2012 1 commit
-
-
- 10 Nov, 2012 1 commit
-
-
- 05 Nov, 2012 1 commit
-
-
- 31 Oct, 2012 1 commit
-
-