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