Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Selenium not able to assume untrusted certificate issuer

  • Không có trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
more options

I am a C# programmer and i am using Selenium to test web applications. With the newest updates, firefox is not able to assume untrusted certificate issuer. Firefox does not work regardless, it does not matter what i am trying to do. I am testing on a seperated server via RemoteWebriver. Chrome and internet explorer work fine.

Here is a little snippet of my actual code [...] var uri = new Uri($"http://{ServerProperties.Address}:4444/wd/hub"); [...]

                   case "InternetExplorer":
                       return new RemoteWebDriver(uri, DesiredCapabilities.InternetExplorer());
                   case "Firefox":
                       FirefoxProfile profile = new FirefoxProfile();
                       profile.AcceptUntrustedCertificates = true;
                       profile.AssumeUntrustedCertificateIssuer = true;
                       DesiredCapabilities dc = DesiredCapabilities.Firefox();
                       dc.SetCapability(FirefoxDriver.ProfileCapabilityName, profile);
                       return new RemoteWebDriver(uri, dc);
                   case "Chrome":
                       return new RemoteWebDriver(uri, DesiredCapabilities.Chrome());

[...]

Thanks for your help

I am a C# programmer and i am using Selenium to test web applications. With the newest updates, firefox is not able to assume untrusted certificate issuer. Firefox does not work regardless, it does not matter what i am trying to do. I am testing on a seperated server via RemoteWebriver. Chrome and internet explorer work fine. Here is a little snippet of my actual code [...] var uri = new Uri($"http://{ServerProperties.Address}:4444/wd/hub"); [...] case "InternetExplorer": return new RemoteWebDriver(uri, DesiredCapabilities.InternetExplorer()); case "Firefox": FirefoxProfile profile = new FirefoxProfile(); profile.AcceptUntrustedCertificates = true; profile.AssumeUntrustedCertificateIssuer = true; DesiredCapabilities dc = DesiredCapabilities.Firefox(); dc.SetCapability(FirefoxDriver.ProfileCapabilityName, profile); return new RemoteWebDriver(uri, dc); case "Chrome": return new RemoteWebDriver(uri, DesiredCapabilities.Chrome()); [...] Thanks for your help