From 28d73040918e9458b0dec1ba07eb9f55c13ceb45 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Fri, 14 Oct 2022 13:34:59 +0200 Subject: [PATCH] Readme: Fix webdriver_magager ChromeType import It's webdriver_manager.core.utils instead of webdriver_manager.utils --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d73ad9..cc0afc3 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 @@ -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. \ No newline at end of file +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.