1

I want to start up Selenium server by specified firefox profile like blow command, but it didn't work well(can't open according to my specified profile), can somebody tell me if there were something wrong I used the command? Thanks!

ps: Windowns7 platform.

java -jar C:\Users\zhanjunw\Desktop\Selenium\selenium-server-standalone-2.20.0.jar -interactive -singleWindow -trustAllSSLCertificates -firefoxProfileTemplate "C:\Users\zhanjunw\AppData\Local\Mozilla\Firefox\Profiles\r91p21kg.seleniumProfile"

4

1 回答 1

0

选项 firefoxProfileTemplate 不再有效。请改用 webdriver.firefox.profile。你的命令应该是:

java -jar C:\Users\zhanjunw\Desktop\Selenium\selenium-server-standalone-2.20.0.jar -interactive -singleWindow -trustAllSSLCertificates -Dwebdriver.firefox.profile=seleniumProfile

注意:选项 webdriver.firefox.profile 采用配置文件的名称,而不是其在文件系统中的位置。请参阅:http ://code.google.com/p/selenium/wiki/FirefoxDriver

于 2014-04-15T15:37:38.877 回答