-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver' #24
Comments
@kmb25 it is Selenium problem. |
You need to put your chromedriver to the same directory or the one where it should be. Download chromedriver first on google and place it somewhere. Copy the Path and paste it to your code. This should solve it |
The reason for the error may be a mismatch between the version of ChromeDriver you are using and the version of Google Chrome installed on your system. The specific error message you received is: "selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 77." Thin can be help you.
from webdriver_manager.chrome import ChromeDriverManager # <- add
def __init__(self, headless: bool = False) -> None:
~~~~~~~~~~~
- self.driver = webdriver.Chrome(options=chrome_options)
+ self.driver = webdriver.Chrome(ChromeDriverManager().install(), options=chrome_options) |
Any chance you know where I'm going wrong here. Thanks!
The text was updated successfully, but these errors were encountered: