【发布时间】:2021-06-03 08:35:27
【问题描述】:
让我们的自动化在 Microsoft Edge 上运行时遇到了一些问题。安装了正确的浏览器版本驱动程序并尝试了其他一些“修复”无济于事。这是在 PyCharm 上使用 Selenium 和 Python3。
回到开头,这是我的代码……
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.edge.options import Options
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
options = Options()
driver = webdriver.Edge(executable_path='/Users/james.stott/PycharmProjects/venv/Selenium/Remote/msedgedriver')
以下是引发的错误...
selenium.common.exceptions.SessionNotCreatedException:消息:未创建会话:未找到匹配的功能
任何帮助,将不胜感激。
【问题讨论】:
标签: python selenium automation microsoft-edge selenium-edgedriver