selenium googleDrive

http://chromedriver.storage.googleapis.com/index.html?path=2.1/下载地址

把googledriver.exe 放到google浏览器下目录下,

然后再创建webDirver对象时 从构造函数传入.exe路径。即可。

_driver = new OpenQA.Selenium.Chrome.ChromeDriver(@"C:Program Files (x86)Chrome") 

C:Program Files (x86)Chrome

原文地址:https://www.cnblogs.com/wcLT/p/3409836.html