信息: 无法找到匹配的功能集

2024-05-13 01:31:09 发布

您现在位置:Python中文网/ 问答频道 /正文

消息:找不到匹配的功能集

我安装了Firefix并编写了fullpath。你知道吗

但没有成功

from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import    DesiredCapabilities
binary = r'C:\Users\Public\Desktop\Firefox.lnk'
options = webdriver.FirefoxOptions()
options.binary = binary
cap = DesiredCapabilities().FIREFOX
cap["marionette"] = True
browser = webdriver.Firefox(firefox_options=options,    executable_path=r'C:\Users\a.sakata\geckodriver\geckodriver.exe',  capabilities=cap)
browser.get('http://google.com/')
browser.quit()

Tags: fromimportbrowser消息seleniumfirefoxusersoptions