은 아마 당신이 필요 팝업 창을 방지하기
대신
chromeOptions.AddUserProfilePreference("disable-popup-blocking", "false") // enables blocking the popup
로 변경
chromeOptions.AddUserProfilePreference("disable-popup-blocking", "true") // disables blocking the popup
입니다.
편집 : 당신이 유해한 파일 내용에 갇히지하는 경우, 당신이 시도하고 사용 실험 크롬 옵션을을 설정할 수 있습니다
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("safebrowsing.enabled", "true");
chromeOptions.setExperimentalOption("prefs", prefs);
의 DoC here에서 샘플을 인용 :
는 크롬 환경
을 설정 0
ChromeOptions options = new ChromeOptions();
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("profile.default_content_settings.popups", 0);
options.setExperimentalOption("prefs", prefs);
날짜 - 2016년 6월 4일 [C#을]
몇 링크를 통해 갔다 및 .Net
여전히 ChromeOptions로를 따라 setExperimentalOption
기본 설정을하지 않는이 알아낼 수 있습니다. 그래서, 플래그 Add Argument to the ChromeOptions using C#로가는 길 중 하나는 here가 될 것이다 나열 :
chromeOptions.AddArgument("--safebrowsing-disable-download-protection");
확실히 내용이 악의없는 있도록 내용의 해시 다운로드 URL 및 다운로드를 확인 세이프 브라우징 기능을 사용하지 않습니다.
날짜 - 2016년 6월 4일 [JAVA]
로 인용 here 문서 :
공공 무효 setExperimentalOption (java.lang.String의 이름, 자바 .lang.Object 값)
실험 설정 imental 옵션. 새로운 ChromeDriver 옵션 인 에 아직 유용하지 않음 은 ChromeOptions API을 통해 공개되었습니다.
은 아마 당신이 필요하다'chromeOptions.AddUserProfilePreference ("해제 - 팝업 차단", " false ")'를 사용하여 팝업 창을 차단합니다. – nullpointer