from selenium import webdriver
browser = webdriver.Chrome(executable_path='/sufan/Applications/Google Chrome.app' )
print(browser.get("http://www.baidu.com"))
selenium.common.exceptions.WebDriverException: Message: 'Google Chrome.app' executable needs to be in PATH.
为什么是给的报错说是地址不对呢?该怎么写呢?
I haven’t used selenium much, so I may not be able to solve your problem. However, I found a similar question and see if the answer helps.
Stackoverflow
executable_path='/Users/sufan/Applications/Google Chrome.app''