본문 바로가기

코딩

[C#] 셀레니움(Selenium) 콘솔(Console) 창 숨기기

반응형

크롬(Chrome) 사용시

var driverService = ChromeDriverService.CreateDefaultService();
driverService.HideCommandPromptWindow = true;
driver = new ChromeDriver(driverService, new ChromeOptions());

 

인터넷 익스플로러(Internet Explorer) 사용시

 

var driverService = InternetExplorerDriverService.CreateDefaultService();
driverService.HideCommandPromptWindow = true;
driver = new InternetExplorerDriver(driverService, new InternetExplorerOptions());

 

반응형