Home python 'chromedriver.exe' Executable Needs to Be in Path / Python / Selenium

‘chromedriver.exe’ Executable Needs to Be in Path / Python / Selenium

Author

Date

Category

gives an error:

traceback (most recent call last):
  File "C: \ Users \ Lenovo \ Desktop \ Hacker's Tools \ Core \ Chromedriver \ Main.py", Line 31, In & Lt; Module & GT;
  Driver = WebDriver.chrome (executable_path = r "C: \ Users \ Lenovo \ Desktop \ Hacker's Tools \ Core \ chromedriver.exe")
 File "C: \ Users \ Lenovo \ AppData \ Local \ Programs \ Python \ Python39 \ Lib \ Site-Packages \ Selenium \ WebDriver \ Chrome \ WebDriver.py", Line 73, In __init__
  Self.Service.start ()
 File "C: \ Users \ Lenovo \ AppData \ Local \ Programs \ Python \ Python39 \ Lib \ Site-Packages \ Selenium \ WebDriver \ COMMON \ SERVICE.PY", LINE 81, IN START
  Raise WebDriverException (
Selenium.comMon.Exceptions.WebDriverException: Message: 'Chromedriver.exe' Executable Needs to Be in Path. Please see https://sites.google.com/a/chromium.org/chromedriver/home.

Answer 1, Authority 100%

leave the answer, because The search does not show Number of comments.

Error arises due to the fact that the full path to Chromedriver Despite the fact that it is in the same directory as and main.py Causeing it.

And to hide the bar, the Chrome browser controls the automated test software. ” You need to specify options:

options.add_experimental_option ("EXCLUDESWITCHES", ["Enable-Automation])
options.add_experimental_option ('UseAutomationExtension', False)

Source

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions