generalize webdriver instanciation