最近,Chrome更新到了79版。我已经像往常一样将chromedriver更新到了各自的版本--在我的java项目中。但是当我在容器中的home/seluser/中部署Zalenium时,仍然是chromedriver-78。我试着用'kubectl rm chromedriver‘删除旧的chromedriver -文件正在被删除,但是我不能运行任何测试。我尝试过重新部署Zalenium,但没有成功。除chromedriver文件外,所有内容都带有最新日期的时间戳。当然,在过去从来没有这个问题。如何更新chromedriver,使其在所有容器中都能更新?Zalenium如何控制/处理Chrome浏览器更新?
这是每当我使用'Interact via VNC‘的时候,chromedriver加入了一个容器:

下面是我如何处理访问chromedriver的代码片段:
public static MutableCapabilities getChromeCapability() {
String chromePath = prop_conf_browsers.getProperty("chromePath");
String chromeDriverPath = prop_conf_browsers.getProperty("chromeDriverPath");
System.out.println(chromeDriverPath);
String chromeProfileDir = prop_conf_browsers.getProperty("chromeProfileDir");
if (chromePath != null && !chromePath.equalsIgnoreCase("default") && !chromePath.equalsIgnoreCase("")) {
System.setProperty("webdriver.chrome.bin", chromePath);
}
if (chromeDriverPath != null && !chromeDriverPath.equalsIgnoreCase("default")
&& !chromeDriverPath.equalsIgnoreCase("")) {
System.setProperty("webdriver.chrome.driver", chromeDriverPath);
}环境信息:
capabilities: Capabilities {acceptSslCerts: true, browserName: chrome, maxInstances: 1, platform: LINUX, platformName: LINUX, resolution: 1920x1080, screen-resolution: 1920x1080, screenResolution: 1920x1080, seleniumProtocol: WebDriver, server:CONFIG_UUID: 456a4fcc-xxxx-xxxx-xxxx-xxx..., tz: America/Chicago, version: 79.0.3945.79}发布于 2019-12-15 17:54:54
您不需要在您的Java项目中配置ChromeDriver,docker容器已经配置了所有这些。
https://stackoverflow.com/questions/59337189
复制相似问题