Casper.userAgent() does not require the instance to be started anymore
Showing
2 changed files
with
1 additions
and
1 deletions
... | @@ -5,6 +5,7 @@ XXXX-XX-XX, v1.0.0 | ... | @@ -5,6 +5,7 @@ XXXX-XX-XX, v1.0.0 |
5 | ------------------ | 5 | ------------------ |
6 | 6 | ||
7 | - merged PR [#319](https://github.com/n1k0/casperjs/pull/319), fixed [#209](https://github.com/n1k0/casperjs/issues/209) - test duration has been added to XUnit XML result file. | 7 | - merged PR [#319](https://github.com/n1k0/casperjs/pull/319), fixed [#209](https://github.com/n1k0/casperjs/issues/209) - test duration has been added to XUnit XML result file. |
8 | - `Casper.userAgent()` does not require the instance to be started anymore | ||
8 | 9 | ||
9 | 2012-12-14, v1.0.0-RC6 | 10 | 2012-12-14, v1.0.0-RC6 |
10 | ---------------------- | 11 | ---------------------- | ... | ... |
... | @@ -1586,7 +1586,6 @@ Casper.prototype.toString = function toString() { | ... | @@ -1586,7 +1586,6 @@ Casper.prototype.toString = function toString() { |
1586 | */ | 1586 | */ |
1587 | Casper.prototype.userAgent = function userAgent(agent) { | 1587 | Casper.prototype.userAgent = function userAgent(agent) { |
1588 | "use strict"; | 1588 | "use strict"; |
1589 | this.checkStarted(); | ||
1590 | this.options.pageSettings.userAgent = this.page.settings.userAgent = agent; | 1589 | this.options.pageSettings.userAgent = this.page.settings.userAgent = agent; |
1591 | return this; | 1590 | return this; |
1592 | }; | 1591 | }; | ... | ... |
-
Please register or sign in to post a comment