minor fixes
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -1893,12 +1893,12 @@ Casper.prototype.waitForText = function(pattern, then, onTimeout, timeout) { | ... | @@ -1893,12 +1893,12 @@ Casper.prototype.waitForText = function(pattern, then, onTimeout, timeout) { |
1893 | * @return Casper | 1893 | * @return Casper |
1894 | */ | 1894 | */ |
1895 | Casper.prototype.waitForSelectorTextChange = function(selector, then, onTimeout, timeout) { | 1895 | Casper.prototype.waitForSelectorTextChange = function(selector, then, onTimeout, timeout) { |
1896 | "user strict"; | 1896 | "use strict"; |
1897 | this.checkStarted(); | 1897 | this.checkStarted(); |
1898 | timeout = timeout ? timeout : this.options.waitTimeout; | 1898 | timeout = timeout ? timeout : this.options.waitTimeout; |
1899 | var currentSelectorText = this.fetchText(selector); | 1899 | var currentSelectorText = this.fetchText(selector); |
1900 | return this.waitFor(function _check() { | 1900 | return this.waitFor(function _check() { |
1901 | return currentSelectorText != this.fetchText(selector); | 1901 | return currentSelectorText !== this.fetchText(selector); |
1902 | }, then, onTimeout, timeout); | 1902 | }, then, onTimeout, timeout); |
1903 | }; | 1903 | }; |
1904 | 1904 | ... | ... |
-
Please register or sign in to post a comment