Workaround for Selenium #3280 issue