Commit a04e553a a04e553a70b399a62970b2f89c1c3c67f617501b by Nicolas Perriault

Merge pull request #413 from yevgeny/master

.waitFor stuff for hash-based URLs doesn’t work
2 parents 4548554d 50255710
...@@ -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);
......