Make sure the page is loaded before testing the page.