0

I downloaded the chrome webdriver and got the chromedriver executable in the /usr/local/bin. Still, the error shows up that "driver is not found" There might be something else wrong with the code too.

pip install selenium
from selenium import webdriver
driver = webdriver.Chrome
driver.get('https://www.google.com')
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352

1 Answers1

1

The line of code:

pip install selenium

is the part of installing Selenium i.e. Configuration. So it shouln't be part of your script. So you need to remove this line.

Finally, if your usecase is to use and you need to initialize the session in the following way:

driver = webdriver.Chrome()
# or
driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver') # presuming chromedriver binary stored at /usr/local/bin
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352