我已经设置了一个新的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有谁能告诉我我有什么地方没做对吗?
发布于 2010-09-07 22:46:28
我认为问题实际上在于配置文件的位置。
我创建了一个新的配置文件,并按照http://agileqatesting.com/?p=27上的建议将其放入"c:\lib\selenium\ff_profile“中。
而且它看起来工作正常!
因此,批处理文件中的行现在看起来如下所示
java -jar selenium-server.jar -firefoxProfileTemplate "C:\lib\selenium\ff_profile"发布于 2011-06-06 10:18:29
您启动服务器的方式是正确的,只要不提及用户主目录(~/)就可以了。我不确定反斜杠()是否有效,如果不能尝试使用正斜杠(/):
java -jar selenium-server.jar -firefoxProfileTemplate "C:\Documents and Settings\dadams\Application Data\Mozilla\Firefox\Profiles\k39jzisz.SeleniumUser"https://stackoverflow.com/questions/3650506
复制相似问题