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.
为什么是给的报错说是地址不对呢?该怎么写呢?

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
没怎么用过selenium,个人可能没法解决你的问题。不过找到了一个类似问题,你看看解答有没有帮助。
Stackoverflow
executable_path='/Users/sufan/Applications/Google Chrome.app''