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')