Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ As a result, our chromedriver install code changed a little more:
```python
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from webdriver_manager.utils import ChromeType
from webdriver_manager.core.utils import ChromeType

driver_path = ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install()
driver = webdriver.Chrome(driver_path)
Expand Down Expand Up @@ -100,7 +100,7 @@ To combine the webdriver-manager driver path and the headless Chrome option, the
```python
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from webdriver_manager.utils import ChromeType
from webdriver_manager.core.utils import ChromeType
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service

Expand All @@ -122,4 +122,4 @@ for option in options:
driver = webdriver.Chrome(service=chrome_service, options=chrome_options)
```

The biggest change here beyond all those options is the `Service` thing. Apparently just giving it the path to `chromdriver` isn't good enough? Who knows, I just do what works.
The biggest change here beyond all those options is the `Service` thing. Apparently just giving it the path to `chromdriver` isn't good enough? Who knows, I just do what works.