extract selenium wrapper into library