Answer the question
In order to leave comments, you need to log in
Is it possible not to manually prescribe the path of chromedriver.exe?
Tried this code:
from selenium import webdriver
import os
path = (os.path.abspath('chromedriver.exe'))
browser = webdriver.Chrome(path)
Message: 'chromedriver.exe' executable needs to be in PATH.
Answer the question
In order to leave comments, you need to log in
Yes, you can add the chrome driver to the environment variables and then you can not specify the path when initializing the driver. Here's the guide , if anything.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question