Submitted form check updated to support non JS-aware drivers. Also form submission test is auto-skipped if driver doesn’t support form submission.
Minor formatting issues with `catch` blocks.
Merge pull request #392 from aik099/page-loaded-after-form-submit-in-tests-fix

Improved form submission detection code for headless drivers