在升级firefox 19之后,我在selenium web驱动程序中遇到以下错误
WebDriverException: Message: "Can't load the profile. Profile Dir:
除了降级firefox之外,还有什么办法可以解决这个问题吗?
发布于 2013-03-14 14:31:41
我怀疑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)
https://stackoverflow.com/questions/15408902
复制相似问题