I am on Mac OS X using selenium with python 3.6.3.
This code runs fine, opens google chrome and chrome stays open.:
chrome_options = Options() chrome
def createSession(): **global driver** driver = webdriver.Chrome(chrome_driver_path) driver.maximize_window() driver.get("https://google.com") return driver