【问题标题】:c# selenium webdriver using firefox portablec# selenium webdriver 使用 firefox 便携
【发布时间】:2014-03-13 13:55:04
【问题描述】:

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

Firefox 二进制 和 FirefoxProfile 然后 FirefoxDriver ,浏览器警报 =

您的 Firefox 配置文件无法加载。它可能丢失或无法访问

请帮帮我 谢谢

【问题讨论】:

    标签: c# firefox selenium


    【解决方案1】:

    这只是意味着 selenium 无法找到您的 selenium 配置文件。你有两个选择:

    1. 让 selenium 创建自己的配置文件。
    2. 指定您自己的 Firefox 配置文件。

    对于#2,您只需传递参数:

    -firefoxProfileTemplate /path/to/selenium.profile
    

    【讨论】:

      猜你喜欢
      • 2014-04-12
      • 1970-01-01
      • 2015-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多