【发布时间】:2014-03-13 13:55:04
【问题描述】:
我想在便携式 Firefox 中使用 selenium 我需要在硬盘的两个位置使用两个具有不同配置文件的 Firefox,但是在创建时
Firefox 二进制 和 FirefoxProfile 然后 FirefoxDriver ,浏览器警报 =
您的 Firefox 配置文件无法加载。它可能丢失或无法访问
请帮帮我 谢谢
【问题讨论】:
我想在便携式 Firefox 中使用 selenium 我需要在硬盘的两个位置使用两个具有不同配置文件的 Firefox,但是在创建时
Firefox 二进制 和 FirefoxProfile 然后 FirefoxDriver ,浏览器警报 =
您的 Firefox 配置文件无法加载。它可能丢失或无法访问
请帮帮我 谢谢
【问题讨论】:
这只是意味着 selenium 无法找到您的 selenium 配置文件。你有两个选择:
对于#2,您只需传递参数:
-firefoxProfileTemplate /path/to/selenium.profile
【讨论】: