Fixed some intermittent Selenium test failures.