Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
5cad7e63
...
5cad7e63f8dadf78a5e76c9194d78b67bf7d9e96
authored
2013-03-01 17:57:50 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
minor fixes
1 parent
dfc5d75f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
modules/casper.js
modules/casper.js
View file @
5cad7e6
...
...
@@ -1893,12 +1893,12 @@ Casper.prototype.waitForText = function(pattern, then, onTimeout, timeout) {
* @return Casper
*/
Casper
.
prototype
.
waitForSelectorTextChange
=
function
(
selector
,
then
,
onTimeout
,
timeout
)
{
"use
r
strict"
;
"use strict"
;
this
.
checkStarted
();
timeout
=
timeout
?
timeout
:
this
.
options
.
waitTimeout
;
var
currentSelectorText
=
this
.
fetchText
(
selector
);
return
this
.
waitFor
(
function
_check
()
{
return
currentSelectorText
!=
this
.
fetchText
(
selector
);
return
currentSelectorText
!=
=
this
.
fetchText
(
selector
);
},
then
,
onTimeout
,
timeout
);
};
...
...
Please
register
or
sign in
to post a comment