Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firefox配置文件无法运行selenium webdriver_Firefox_Selenium_Webdriver_Ssl Certificate - Fatal编程技术网

Firefox配置文件无法运行selenium webdriver

Firefox配置文件无法运行selenium webdriver,firefox,selenium,webdriver,ssl-certificate,Firefox,Selenium,Webdriver,Ssl Certificate,我已经按照以下步骤创建了firefox配置文件: 1. firefox.exe -ProfileManager -no-remote 2. New profile created with name CM 3. open the new profile and add the certificate 现在,从调用此配置文件的selenium web驱动程序自动化脚本开始 FirefoxProfile firefoxProfile = new FirefoxProfil

我已经按照以下步骤创建了firefox配置文件:

   1. firefox.exe -ProfileManager -no-remote
   2. New profile created with name CM
   3. open the new profile and add the certificate
现在,从调用此配置文件的selenium web驱动程序自动化脚本开始

    FirefoxProfile firefoxProfile = new FirefoxProfile();
    ProfilesIni allProfiles = new ProfilesIni();
    firefoxProfile = allProfiles.getProfile("CM");

    firefoxProfile.setAcceptUntrustedCertificates(true);
    firefoxProfile.setAssumeUntrustedCertificateIssuer(false);
    driver = new FirefoxDriver(firefoxProfile);
但仍然获取不受信任的证书错误

提前感谢,

您是否使用了该软件包?