Ich suchte nach einer Lösung auf Stack, aber in meinem Fall funktioniert nichts. Ich habe versucht:Wie stelle ich das Firefox-Profil in C# so ein, dass nicht vertrauenswürdige Zertifikate akzeptiert werden?
public RemoteWebDriver runDriver()
{
FirefoxDriverService service =
FirefoxDriverService.CreateDefaultService();
service.HideCommandPromptWindow = true;
FirefoxBinary fb = new FirefoxBinary();
FirefoxProfile fprofile = new FirefoxProfile();
FirefoxOptions fo = new FirefoxOptions();
fo.Profile = fprofile;
fprofile.AcceptUntrustedCertificates = true;
und:
fprofile.SetPreference("network.automatic-ntlm-auth.trusted-uris", very_dangerous_url);
, wenn es auf den Punkt:
fb.StartProfile(fprofile);
return driver;
}
Es bricht.
Ich arbeite in C# sekenium Webdriver und ich möchte, dass mein Browser eine Seite ohne Zertifikate akzeptiert.
Was ist der Fehler, mit dem es bricht? –