誰懂啊 找了一個小時的錯誤?
? ? ? ? 報錯內容為
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for MicrosoftEdge using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
?文章來源地址http://www.zghlxwxcb.cn/news/detail-688150.html
首先來說說我的哪些操作導致了這些錯誤
????????我將我運行代碼同一目錄下的msedgedriver.exe沒有改名為MicrosoftWebDriver.exe同時我又將python/Scripts目錄里面的驅動器改名為MicrosoftWebDriver.exe結果導致了文章開始的報錯
我的解決方法
? ? ? ? 我將我運行代碼同一目錄下的msedgedriver.exe改名為MicrosoftWebDriver.exe這樣的話就不會報錯了或者將運行代碼同一目錄下的msedgedriver.exe刪去然后保留python/Scripts目錄里面的MicrosoftWebDriver.exe然后就ok了文章來源:http://www.zghlxwxcb.cn/news/detail-688150.html
?
到了這里,關于selenium打開瀏覽器報錯成功解決selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain...的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!