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) {
page.onNavigationRequested = function onNavigationRequested(url, type, lock, isMainFrame) {
casper.log(f('Navigation requested: url=%s, type=%s, lock=%s, isMainFrame=%s',
url, type, lock, isMainFrame), "debug");
if (isMainFrame) {
if (isMainFrame && casper.requestUrl !== url) {
casper.navigationRequested = true;
}
casper.emit('navigation.requested', url, type, lock, isMainFrame);
......