Commit 95ea1845 95ea1845006a68d09105ade19a5c812ca33c6358 by Nicolas Perriault

fixes added support for 'navigation.requested' event

1 parent 86e28dbf
Subproject commit df5d80463acbdb176d8e7e579400f5968188e212
Subproject commit 6c99d2b50c26e566b781b93a0f604197586a4d0c
......
......@@ -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);
};
......