Added waitForPageToLoad to the Selenium tests