0
제목에서 알 수 있듯이 Chrome, IE 및 Opera 브라우저에서 SSL 인증서를 처리하는 데 어려움을 겪고 있습니다. 내가하고 있어요 :크롬, IE 및 오페라에서 SSL 인증서 처리 관련 문제
ChromeOptions opt = new ChromeOptions();
opt.AddAdditionalCapability(CapabilityType.AcceptSslCertificates, true);
IWebDriver driver = new ChromeDriver(opt);
driver.Navigate().GoToUrl("https://localhost");
내가 받고 있어요 : 마찬가지로
Result StackTrace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeOptions options)
at ... (project name and path here)
Result Message: Initialization method <Project and test method name here> threw exception. System.InvalidOperationException: System.InvalidOperationException: unknown error: cannot parse capability: chromeOptions
from unknown error: unrecognized chrome option: acceptSslCerts
(Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 6.1 SP1 x86_64).
, 나는 OperaOptions
및 OperaDriver
클래스를 사용하여 오페라 브라우저 같은 일을 받고 있어요 :
System.InvalidOperationException: unknown error: cannot parse capability: operaOptions
from unknown error: unrecognized chrome option: acceptSslCerts
을
그리고 Internet Explorer 브라우저의 경우 InternetExplorerOptions
및 InternetExplorerDriver
클래스를 사용하면 오류가 발생하지 않지만 SSL Cert ificate가 제대로 처리되지 않습니다.
도움을 주시면 감사하겠습니다.