options = webdriver.ChromeOptions() options.add_experimental_option("detach", True) driver = webdriver.Chrome(chrome_options=options, executable_path=r'C:WebDriverschromedriver.exe')