suchen

Heim  >  Fragen und Antworten  >  Hauptteil

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.

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

PHP中文网PHP中文网2875 Tage vor648

Antworte allen(2)Ich werde antworten

  • 巴扎黑

    巴扎黑2017-04-18 10:29:49

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

    Antwort
    0
  • PHP中文网

    PHP中文网2017-04-18 10:29:49

    executable_path='/Users/sufan/Applications/Google Chrome.app''

    Antwort
    0
  • StornierenAntwort