IE7을 Winodws10에서 개인 모드로 열어야한다는 요구 사항이 있습니다. 다음 코드를 시도했지만 예외가 발생했습니다. "Internet Explorer를 시작할 때 예기치 않은 오류가 발생했습니다. CreateProcess() API를 사용할 수 없습니다. Internet Explorer 8 이상에서 CreateProcess()를 사용하려면 HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer의 레지스트리 설정 값 \ Main \ TabProcGrowth는 '0'이어야합니다. "셀렌 C# InPrivate 모드 Internet Explorer IE 11에서 예외가 발생합니다.
코드 : INT 발 = Convert.ToInt32 (Microsoft.Win32.Registry.GetValue ("HKEY_CURRENT_USER \ 소프트웨어 \ 마이크로 소프트 \ Internet Explorer를 \ 홈페이지 \ TabProcGrowth", "", -1));
InternetExplorerOptions ops = new InternetExplorerOptions();
ops.ForceCreateProcessApi = true;
ops.BrowserCommandLineArguments = "-private";
IWebDriver driver = new InternetExplorerDriver(url, ops);
RegEdit에 키가 있으며 성공적으로 읽을 수 있습니다.