python - selenium webdriver 中 Chrome 的"地址问题"

查看:113
本文介绍了python - selenium webdriver 中 Chrome 的"地址问题"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

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.

为什么是给的报错说是地址不对呢?该怎么写呢?

解决方案

没怎么用过selenium,个人可能没法解决你的问题。不过找到了一个类似问题,你看看解答有没有帮助。
Stackoverflow

这篇关于python - selenium webdriver 中 Chrome 的"地址问题"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆