1option = webdriver.ChromeOptions()
2option.add_argument('headless')
3driver = webdriver.Chrome('path/to/chromedriver',options=option)
4
1from selenium import webdriver # for webdriver
2from selenium.webdriver.support.ui import WebDriverWait # for implicit and explict waits
3from selenium.webdriver.chrome.options import Options # for suppressing the browser
4
1from selenium import webdriver # for webdriver
2from selenium.webdriver.support.ui import WebDriverWait # for implicit and explict waits
3from selenium.webdriver.chrome.options import Options # for suppressing the browser
4
5option = webdriver.ChromeOptions()
6option.add_argument('headless')
7driver = webdriver.Chrome('path/to/chromedriver',options=option)