Raise bad page encountered error.
remove redundant code in wait_for_page
Merge branch 'develop' of https://github.com/wiredrive/wtframework into develop