📜  c#使用cefcharp和selenium可以吗? - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:59.940000             🧑  作者: Mango

代码示例1
var service = ChromeDriverService.CreateDefaultService(@"C:\chromedriver");
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.AddArgument("--remote-debugging-port=1234");
chromeOptions.BinaryLocation = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";
IWebDriver driver = new ChromeDriver(service, chromeOptions); 
driver.Navigate().GoToUrl("http://www.google.com.com");
driver.Quit();