I try to build a bot but to begin I need to setup chrome driver but it's already setup in my path
from selenium import webdriver
import os
import fxhash.constants as const
from webdriver_manager.chrome import ChromeDriverManager
class Fxhash(webdriver.Chrome):
def __init__(self, driver_path=r"/Users/alexandrejacqueline"):
self.driver_path = driver_path
os.environ['PATH'] += self.driver_path
super(Fxhash, self).__init__()
def land_first_page(self):
self.get(const.BASE_URL)
the error is :
os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
Can somebody can help me ??
Best