Update currentResponse on Navigation
Previously, when clicking on a link in a page or submitting a form, Casper.page would be updated to reflect the newly loaded page, but Casper.currentResponse would not. This caused the response passed to 'then' callbacks to only reflect the initial page load. This patch resolves that issue so that Casper's page and currentResponse are consistent and subsequent 'then' call backs receive the response of the most recent main page load.
Showing
2 changed files
with
56 additions
and
0 deletions
tests/suites/casper/navigation.js
0 → 100644
-
Please register or sign in to post a comment