简体   繁体   中英

Selenium2 profile to accept untrusted certificates

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 browser, however in selenium I cannot avoid it. Any suggestions?

您可以通过设置系统属性来指定FirefoxDriver使用的现有配置文件:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM