added support to choose when selenium driver