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
95ea1845
...
95ea1845006a68d09105ade19a5c812ca33c6358
authored
2012-06-24 14:43:21 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixes added support for 'navigation.requested' event
1 parent
86e28dbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
docs
modules/casper.js
docs
@
6c99d2b5
Subproject commit
df5d80463acbdb176d8e7e579400f5968188e212
Subproject commit
6c99d2b50c26e566b781b93a0f604197586a4d0c
...
...
modules/casper.js
View file @
95ea184
...
...
@@ -1608,6 +1608,11 @@ function createPage(casper) {
casper
.
emit
(
'load.finished'
,
status
);
casper
.
loadInProgress
=
false
;
};
page
.
onNavigationRequested
=
function
onNavigationRequested
(
url
,
navigationType
,
navigationLocked
,
isMainFrame
)
{
casper
.
log
(
f
(
'Navigation requested: url=%s, type=%s, lock=%s, isMainFrame=%s'
,
url
,
navigationType
,
navigationLocked
,
isMainFrame
),
"debug"
);
casper
.
emit
(
'navigation.requested'
,
url
,
navigationType
,
navigationLocked
,
isMainFrame
);
};
page
.
onPrompt
=
function
onPrompt
(
message
,
value
)
{
return
casper
.
filter
(
'page.prompt'
,
message
,
value
);
};
...
...
Please
register
or
sign in
to post a comment