Selenium - 自定义Firefox配置文件

时间:2010-09-06 09:52:30

标签: selenium-rc

我已经设置了一个新的firefox配置文件,用于Selenium(本地QA网站接受的证书警告)。

但是,我不断被告知配置文件目录不存在。

这是我的批处理文件

中的行
java -jar selenium-server.jar -firefoxProfileTemplate ~/"C:\Documents and Settings\dadams\Application Data\Mozilla\Firefox\Profiles\k39jzisz.SeleniumUser"

但我得到的信息是:

Firefox profile template doesn't exist: C:\Installs\selenium-remote-control-1.0.
3\selenium-server-1.0.3\~\C:\Documents and Settings\dadams\Application Data\Mozi
lla\Firefox\Profiles\k39jzisz.SeleniumUser

有谁能告诉我我没有正确的做什么?

2 个答案:

答案 0 :(得分:1)

我认为问题实际上是个人资料的位置。

我创建了一个新配置文件并将其放在“c:\ lib \ selenium \ ff_profile”中 如上所述:http://agileqatesting.com/?p=27

它似乎工作正常!

所以批处理文件中的行现在看起来像

java -jar selenium-server.jar -firefoxProfileTemplate "C:\lib\selenium\ff_profile"

答案 1 :(得分:1)

启动服务器的方式是正确的,只是不要提及用户主目录(〜/)那么它应该没问题。我不确定反斜杠()是否有效,如果没有尝试使用正斜杠(/):


java -jar selenium-server.jar -firefoxProfileTemplate "C:\Documents and Settings\dadams\Application Data\Mozilla\Firefox\Profiles\k39jzisz.SeleniumUser"
相关问题