selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                遇到了上面這個問題
有兩種可能
- 沒有chromedriver
- 沒有找到chrome
對于第一種:用下面的這種方法
【解決方案】Selenium打開網站卻顯示空白
對于第二種,可以看下下面的東西。
stackoverflow上有人對這個做了解釋,不過按照這么低的一個點贊率來看,估計也沒有幾個任可能會遇到這個問題。
 https://stackoverflow.com/questions/46026987/selenium-gives-selenium-common-exceptions-webdriverexception-message-unknown
其實就是需要指定一下chrome.exe的文件所在地址。
options = webdriver.ChromeOptions() options.binary_location = r"D:\Software\Chrome\Application\chrome.exe" browser = webdriver.Chrome(chrome_options=options)這樣就好了~
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: O(n)级选排名第k位数(附上算法复杂度
- 下一篇: windows 10配置VS+MPI编程
