Skip to content
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

Error #5

Open
SpringlesMcOutrage opened this issue May 26, 2022 · 2 comments
Open

Error #5

SpringlesMcOutrage opened this issue May 26, 2022 · 2 comments

Comments

@SpringlesMcOutrage
Copy link

Warning (from warnings module):
File "C:\Users\romka\OneDrive\Робочий стіл\1.py", line 11
driver = webdriver.Chrome(chrome_options=opt)
DeprecationWarning: use options instead of chrome_options
Traceback (most recent call last):
File "C:\Users\romka\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
creationflags=self.creationflags)
File "C:\Users\romka\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "C:\Users\romka\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\romka\OneDrive\Робочий стіл\1.py", line 11, in
driver = webdriver.Chrome(chrome_options=opt)
File "C:\Users\romka\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init
service_log_path, service, keep_alive)
File "C:\Users\romka\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 89, in init
self.service.start()
File "C:\Users\romka\AppData\Local\Programs\Python\Python37\lib\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://chromedriver.chromium.org/home

what i must to do?

@fobabs
Copy link

fobabs commented Jun 13, 2022

For Linux: Try sudo apt-get install chromium-chromedriver

@toolscrackedx
Copy link

toolscrackedx commented Sep 28, 2022

driver = webdriver.Chrome(chrome_options=opt)
change to
chrome_driver_path = 'C:\chromedriver\chromedriver.exe'
driver = webdriver.Chrome(executable_path=chrome_driver_path)

you can find chromedriver
here
https://chromedriver.chromium.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants