Moving out Selenium Driver specific code to separate method