> For the complete documentation index, see [llms.txt](https://lauradang.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lauradang.gitbook.io/notes/web/selenium/setting-up-headless-chrome.md).

# Setting Up Headless Chrome

```python
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException

option_chrome = webdriver.ChromeOptions()
option_chrome.add_argument('headless')
option_chrome.add_argument("disable-gpu")

path = "/Users/laura/fippa-cleaning/chromedriver"

driver = webdriver.Chrome(executable_path=path, options=option_chrome)
driver.get(url)
```
