Selenium指定浏览器路径

ChromeOptions options = new ChromeOptions();

options.setBinary("C:\Program Files (x86)\Google\Chrome\chrome.exe");

浏览器不要使用安装版本,否则每次还是启动安装版本。

原文地址:https://www.cnblogs.com/steinven/p/11038800.html