开发者

Selenium2 profile to accept untrusted certificates

开发者 https://www.devze.com 2023-01-12 18:43 出处:网络
I\'m trying to use a firefox profile with selenium2 to accept untrusted certificates, but without any success.I\'m using 2.0a5 of the selenium jar.If I start firefox with the profile manager manually

I'm trying to use a firefox profile with selenium2 to accept untrusted certificates, but without any success. I'm using 2.0a5 of the selenium jar. If I start firefox with the profile manager manually and navigate to the site then there is no challenge from the browse开发者_StackOverflow中文版r, however in selenium I cannot avoid it. Any suggestions?


You can specify the existing profile to be used by FirefoxDriver by setting the system property:

System.setProperty("webdriver.firefox.profile", <Your profile here>);
0

精彩评论

暂无评论...
验证码 换一张
取 消