【发布时间】:2016-06-15 00:51:25
【问题描述】:
我正在使用基于 selenium 构建的 python splinter,我想为 firefox 使用另一个 webdriver,因为从版本 47 开始,firefox 按照以下链接更改了 webdriver
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver
splinter docs 说您可以传递功能参数来使用硒功能
from splinter import Browser
browser = Browser(‘firefox’, capabilities={‘acceptSslCerts’: True})
但是在使用测试时我得到了错误
TypeError: init() 得到了一个意外的关键字参数 'capabilities'
splinter.driver.webdriver.firefox.WebDriver 类也不包含功能,虽然在 splinter doc 中包含它,但我有最新版本,我错过了什么?!
__init__(self, profile=None, extensions=None, user_agent=None, profile_preferences=None, fullscreen=False, wait_time=2)
【问题讨论】:
标签: python selenium webdriver splinter