I have problem with run the selenium on Pycharm in linux mint. I add (which chromedriver --> /usr/bin/chromedriver ) the correct path and selenium show error.
from selenium import webdriver
import os
driver = webdriver.Chrome(executable_path='/usr/bin/chromedriver')
driver.get("https://google.com")
driver.close()
Error:
File "/var/data/python/lib/python3.7/site-packages/selenium/webdriver/common/service.py", line 83, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
Please see https://sites.google.com/a/chromium.org/chromedriver/home```