Firefox 使用selenium避免google chrome中的服务器安全证书
之前,我使用-trustAllSSLCertificates来克服google chrome中selenium rc的证书错误。但是在创建了firefox配置文件之后,如果我在配置文件选项中使用trustAllCertificates,firefox将无法超越错误。如果我避免包含trustAllCertificates,google chrome将无法通过该错误 感谢您的帮助 谢谢试试这个:Firefox 使用selenium避免google chrome中的服务器安全证书,firefox,google-chrome,selenium,Firefox,Google Chrome,Selenium,之前,我使用-trustAllSSLCertificates来克服google chrome中selenium rc的证书错误。但是在创建了firefox配置文件之后,如果我在配置文件选项中使用trustAllCertificates,firefox将无法超越错误。如果我避免包含trustAllCertificates,google chrome将无法通过该错误 感谢您的帮助 谢谢试试这个: 运行firefox.exe-profilemanager 创建新的配置文件并将其命名,以便您知道发生了什
firefox.exe-profilemanager
SELENIUM
ProfilesIni allProfiles = new ProfilesIni();
FirefoxProfile profile = allProfiles.getProfile("SELENIUM");
WebDriver driver = new FirefoxDriver(profile);
我个人从未尝试过这种方法,因为我不需要它,但从其他问题和答案来看,它似乎可以帮助我我很困惑……你的主题提到的是谷歌Chrome,而不是Firefox。