Fix visibility error in a Selenium test