public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver","E:\\geckodriver-v0.16.1-win32.exe");
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"); //This is the location where you have installed Firefox on your machine
FirefoxDriver driver = new FirefoxDriver(options);
driver.get("https://www.facebook.com/");
//driver.manage().window().maximize();
错误
线程“main”中的异常java.lang.IllegalStateException:驱动程序 可执行文件不存在:E:\ geckodriver-v0.16.1-win32.exe
为什么会出现这个错误? geckodriver-v0.16.1-win32.exe的路径是正确的。我该怎么办?