pythonselenium兼容性_对于旧版Google Chrome,无法在Python中使用Selenium找到Chrome
出于兼容性原因,我更喜歡將Chrome版本55.0.2883.75與Chromedriver v.2.26一起使用。我從https://www.slimjet.com/chrome/google-chrome-old-version.php和Chromedriver 2.26從https://chromedriver.storage.googleapis.com/index.html?path下載了較舊版本的chrome = 2.26 /。
我正在使用以下代碼嘗試設(shè)置我的Chrome二進制位置:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.binary_location = "C:\\Program Files\\Chrome\\chrome64_55.0.2883.75\\chrome.exe"
driver = webdriver.Chrome('chromedriver.exe', chrome_options = options)
但是,當我嘗試啟動WebDriver Python時,返回以下錯誤:
WebDriverException: unknown error: cannot find Chrome binary
(Driver info: chromedriver=2.26.436362
(5476ec6bf7ccbada1734a0cdec7d570bb042aa30),platform=Windows NT 10.0.14393 x86_64)
我曾嘗試搜索類似的問題和答案,但到目前為止還沒有任何運氣。非常感謝您的幫助-預先感謝您!
總結(jié)
以上是生活随笔為你收集整理的pythonselenium兼容性_对于旧版Google Chrome,无法在Python中使用Selenium找到Chrome的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 乙烯的用途
- 下一篇: 云电脑5.0.1.11破解版(云电脑破解