selenium.common.exceptions.SessionNotCreatedException: Message: Error: NS_BINDING_ABORTED
时间: 2023-11-24 21:50:49 浏览: 413
根据提供的引用内容,selenium.common.exceptions.SessionNotCreatedException: Message通常是由于ChromeDriver版本与Chrome浏览器版本不兼容导致的。而Error: NS_BINDING_ABORTED通常是由于网络连接问题或浏览器插件问题导致的。
解决selenium.common.exceptions.SessionNotCreatedException: Message的方法是更新ChromeDriver或降级Chrome浏览器版本。可以通过以下步骤更新ChromeDriver:
1. 打开Chrome浏览器,查看版本号。
2. 下载与Chrome浏览器版本兼容的ChromeDriver版本。
3. 将新的ChromeDriver替换旧的ChromeDriver。
解决Error: NS_BINDING_ABORTED的方法是检查网络连接是否正常,或者禁用浏览器插件。如果网络连接正常,可以尝试禁用浏览器插件,然后重新启动浏览器。
```python
# 禁用浏览器插件的Python代码示例
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument('--disable-extensions')
options.add_argument('--disable-plugins-discovery')
service = Service('/path/to/chromedriver')
driver = webdriver.Chrome(service=service, options=options)
```
阅读全文
相关推荐

















