消息:找不到匹配的功能集
我安装了Firefix并编写了全路径。
但是没有用
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()