python – NameError: name ‘webdriver’ is not defined

I can import selenium with no issues, however the webdriver module import gives me a hard time as it can’t be located. The selenium is definitely installed properly, and my python can find it:

print("Selenium package is located at:", selenium.__file__)

console output:


But upon trying to find the webdriver:

print("webdriver selenium module is located at:", webdriver.__file__)

Console output: NameError: name 'webdriver' is not defined

my Chrome version is: Version 121.0.6167.140 (Official Build) (32-bit), but I can’t locate the chromedriver.exe file on my computer.

Read more here: Source link