Embedding Selenium ChromeDriver in Windows Form
I'd like to embed the Selenium ChromeDriver within a Windows Form panel. I've successfully followed this example for embedding notepad in a Windows Form. I think the problem where I am having trouble is getting the MainWindowHandle from the ChromeDriver . Here's what I've got so far: (pastebin link of full code: https://pastebin.com/RNv2vbJ1 ) //----------------------TEST--------------------- ChromeDriverService service = ChromeDriverService.CreateDefaultService(); service.HideCommandPromptWindow = true; ChromeDriver driver = new ChromeDriver(service); Console.WriteLine(driver