Reputation: 13
This is from my script:
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome('C:\\Users\\tques\\chromedriver_win32\\chromedriver.exe')
driver = webdriver.Chrome(ChromeDriverManager().install())
I have tried both instances of the "driver" variable, both independently and together but I always get this error "ModuleNotFoundError: No module named 'webdriver_manager'"
I've already tried uninstalling selenium and webdriver_manager, then reinstalling them, but the issue persists.
Upvotes: 1
Views: 2130
Reputation: 1
try this:
from selenium import webdriver<br>
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
Upvotes: 0
Reputation: 927
find the file path ware webdriver_manager is installed, then add
import sys
sys.path.append(<webdriver_manager path>)
before
from webdriver_manager.chrome import ChromeDriverManager
Upvotes: 1
Reputation: 29
Have you tried to add a driver to the PATH? - HOW TO DO THIS
And then do as simple as:
from selenium import webdriver
browser = webdriver.Chrome()
Upvotes: 0