c#selenium webdriver使用firefox portable

时间:2014-03-13 13:55:04

标签: c# firefox selenium

我想使用selenium和便携式firefox 我需要在硬盘的两个位置使用两个不同配置文件的firefox但是在创建时

FirefoxBinary 和FirefoxProfile 然后是FirefoxDriver,浏览器警报=

无法加载您的Firefox个人资料。它可能缺失或无法访问

请帮帮我 感谢

1 个答案:

答案 0 :(得分:0)

这仅仅意味着硒无法找到您的硒配置文件。您有两种选择:

  1. 让selenium创建自己的个人资料。
  2. 指定您自己的firefox个人资料。
  3. 对于#2,您只需传递参数:

    -firefoxProfileTemplate /path/to/selenium.profile