option = webdriver.ChromeOptions() option.add_argument('headless') driver = webdriver.Chrome('path/to/chromedriver',options=option)