Merge pull request #413 from yevgeny/master
.waitFor stuff for hash-based URLs doesn’t work
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -2227,7 +2227,7 @@ function createPage(casper) { | ... | @@ -2227,7 +2227,7 @@ function createPage(casper) { |
2227 | page.onNavigationRequested = function onNavigationRequested(url, type, lock, isMainFrame) { | 2227 | page.onNavigationRequested = function onNavigationRequested(url, type, lock, isMainFrame) { |
2228 | casper.log(f('Navigation requested: url=%s, type=%s, lock=%s, isMainFrame=%s', | 2228 | casper.log(f('Navigation requested: url=%s, type=%s, lock=%s, isMainFrame=%s', |
2229 | url, type, lock, isMainFrame), "debug"); | 2229 | url, type, lock, isMainFrame), "debug"); |
2230 | if (isMainFrame) { | 2230 | if (isMainFrame && casper.requestUrl !== url) { |
2231 | casper.navigationRequested = true; | 2231 | casper.navigationRequested = true; |
2232 | } | 2232 | } |
2233 | casper.emit('navigation.requested', url, type, lock, isMainFrame); | 2233 | casper.emit('navigation.requested', url, type, lock, isMainFrame); | ... | ... |
-
Please register or sign in to post a comment