This is OK for now (jenkins) but we'll need to refactor for remote webdriver.