Python Selenium不适用于firefox 19.0.2

Python Selenium不适用于firefox 19.0.2,python,firefox,selenium,webdriver,Python,Firefox,Selenium,Webdriver,升级firefox 19后,我发现selenium web驱动程序出现以下错误 WebDriverException: Message: "Can't load the profile. Profile Dir: 除了降级firefox之外,还有什么办法可以解决这个问题吗?我怀疑selenium丢失了配置文件配置 尝试重新加载全新的配置文件,看看这是否解决了您的问题: profile = Selenium::WebDriver::Firefox::Profile.new driver = Se

升级firefox 19后,我发现selenium web驱动程序出现以下错误

WebDriverException: Message: "Can't load the profile. Profile Dir:

除了降级firefox之外,还有什么办法可以解决这个问题吗?我怀疑selenium丢失了配置文件配置

尝试重新加载全新的配置文件,看看这是否解决了您的问题:

profile = Selenium::WebDriver::Firefox::Profile.new
driver = Selenium::WebDriver.for :firefox, :profile => profile
或者,对于已经在Firefox中创建的特定配置文件:

profile = Selenium::WebDriver::Firefox::Profile.from_name "Selenium"
driver = Selenium::WebDriver.for(:firefox, :profile => profile)

您使用的是什么版本的Selenium?然后升级。Firefox19的支持要到v2.31才能实现