partially initialized module 'selenium.webdriver' has no attribute 'ChromiumEdge'
时间: 2023-09-17 09:09:11 浏览: 120
webdriver不能启动浏览器,报module ‘selenium.webdriver’ has no attribute”问题解决办法
5星 · 资源好评率100%
This error message indicates that the Selenium package is unable to find the ChromiumEdge driver.
To resolve this issue, you should ensure that you have downloaded and installed the correct ChromiumEdge driver for your system and that it is stored in the correct location.
You can download the ChromiumEdge driver from the Microsoft website and then specify the file path for the driver in your Selenium script using the following code:
```
from selenium import webdriver
driver = webdriver.ChromiumEdge(executable_path='path/to/chromiumedge/driver')
```
Replace 'path/to/chromiumedge/driver' with the actual file path where you have stored the ChromiumEdge driver on your system.
阅读全文