Make sure, that page is completely loaded, before accessing after form submission (in tests only).
Merge pull request #391 from aik099/page-loaded-after-form-submit-in-tests-fix

Protection against premature page operations after form submission