Fix Selenium tests