Error when executing webdriver. Chrome(): Chrome driver executable needs to be in path
The reason may be that chrome driver is installed, or the chrome driver version does not match the chrome version
Step 1. Download chromedriver
View your own chrome version, and view the corresponding table of chrome driver to download
Download address: https://chromedriver.storage.googleapis.com/index.html
Step 2. Copy chromedriver.exe to the Chrome browser installation directory
After downloading the zip package, we found that there was only one chromedriver.exe file in it. Put the file under the installation directory of Chrome browser. For example, C: program files (x86), Google, chrome and application
(view chrome installation directory: open Chrome browser, open Task Manager, right-click chrome.exe, click properties to view the installation location)
Step 3. Copy chromedriver.exe to the python installation directory
Step 4. Add the browser environment variable to the system path
Turn on the computer – on the computer desktop – right click – my computer – select properties
In my computer properties – left – click – advanced system settings
Click environment variable find path Edit in system variable
OK! Try the python script under execution~
Similar Posts:
- Mac environment and python + selenium environment are built to solve the error reporting problem of chromedriver
- selenium.common.exceptions.WebDriverException: Message: unknown Error: cannot find Chrome binary
- selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to…
- [Solved] Chrome Version Error: Message: session not created: This version of ChromeDriver only supports Chrome version 95
- Selenium Error: Message: unknown error: cannot find Chrome binary
- [Solved] Appium Error: selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Can’t stop process; it’s not currently runni…
- Failed to install node with. MSI, rolling back action (Reprint)
- C# System.Data.OracleClient requires Oracle client software version 8.1.7 or greater
- Android Studio Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (Solved)
- No JVM could be found on your system [How to Solve]