Fix failing Selenium test