谁懂啊 找了一个小时的错误
报错内容为
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
首先来说说我的哪些操作导致了这些错误
我将我运行代码同一目录下的msedgedriver.exe没有改名为MicrosoftWebDriver.exe同时我又将python/Scripts目录里面的驱动器改名为MicrosoftWebDriver.exe结果导致了文章开始的报错
我的解决方法
我将我运行代码同一目录下的msedgedriver.exe改名为MicrosoftWebDriver.exe这样的话就不会报错了或者将运行代码同一目录下的msedgedriver.exe删去然后保留python/Scripts目录里面的MicrosoftWebDriver.exe然后就ok了