Pytest running form Terminal but Pycharm throws error that chromedriver/geckodriver is not available in PATH
This error is popping up even while i specify the path top the chromedriver using the below statement :
browser = webdriver.Chrome("Applications/chromedriver.exe")
Exception :
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/selenium/webdriver/common/service.py:83: WebDriverException
Any resolution could be helpful as this is blocking all tests form being run form the IDE and posing a challenge to debug
Please sign in to leave a comment.
Please try adding the chromedriver.exe executable to PATH in the environment variables field of the run/debug configuration. You can modify the system environment variables there, including PATH.