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
ae7d5b78
...
ae7d5b78a913bdae88cffe01cb1d6a9e9c72336c
authored
2011-11-07 07:45:17 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed Casper.wait()
1 parent
44767e24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
casper.js
casper.js
View file @
ae7d5b7
...
...
@@ -651,7 +651,7 @@
this
.
delayedExecution
=
true
;
var
start
=
new
Date
().
getTime
();
var
interval
=
setInterval
(
function
(
self
,
then
)
{
if
(
!
new
Date
().
getTime
()
-
start
<
timeout
)
{
if
(
new
Date
().
getTime
()
-
start
>
timeout
)
{
self
.
delayedExecution
=
false
;
self
.
log
(
"wait() finished wating for "
+
timeout
+
"ms."
,
"info"
);
if
(
then
)
{
...
...
@@ -712,8 +712,8 @@
* Waits until an element matching the provided CSS3 selector exists in
* remote DOM to process a next step.
*
* @param String selector A CSS3 selector
* @param Function then The next step to perform (optional)
* @param String selector
A CSS3 selector
* @param Function then
The next step to perform (optional)
* @param Function onTimeout A callback function to call on timeout (optional)
* @param Number timeout The max amount of time to wait, in milliseconds (optional)
* @return Casper
...
...
Please
register
or
sign in
to post a comment