更新时间:2023-09-01 08:30:16
只需指定版本二进制文件的路径即可。例如 -
Just specify the path to the binary of the version..may be, like-
FirefoxBinary binary = new FirefoxBinary(new File("path_to_bin"));
FirefoxProfile profile = new FirefoxProfile();
WebDriver driver = new FirefoxDriver(binary, profile);