A super detailed tutorial: springboot integrates mybatis plus>>>
When using Chrome browser, we often encounter the following error: the browser is not called
selenium.common.exceptions.WebDriverException: Message: unknown Error: cannot find Chrome binary
It is usually caused by two kinds of problems:
1. There is a problem with chromedriver.exe driver (including version, path, etc.)
2. There is a problem with chrome.exe itself
Solutions: Three
1. Specify the absolute path of chromedriver.exe driver
driver = webdriver.Chrome(r'd:\xxx\chromedriver.exe')
2. Add chrome.exe to the system path environment variable
3. Specify the absolute path of chrome.exe in the code. Set binary_ Location property
option = webdriver.ChromeOptions()
option.binary_location=r'C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe'
driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
Similar Posts:
- Selenium Error: Message: unknown error: cannot find Chrome binary
- Chromedriver executable needs to be in path [How to Solve]
- Mac environment and python + selenium environment are built to solve the error reporting problem of chromedriver
- [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…
- [Solved] Chrome Version Error: Message: session not created: This version of ChromeDriver only supports Chrome version 95
- How to Solve centos7 selenium–unknown error: DevToolsActivePort file doesn’t exist
- USB: usb_device_handle_win.cc:1056 Failed to read descriptor from node connection
- selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to…
- [Solved] webview Switch Error: Failed to start Chromedriver session: Failed to get sockets matching: @weblayer_devtools_remote_.*4738
- Message: ‘geckodriver’ executable needs to be in PATH. [Solved]