Add some waits until the next page loads in Selenium test.